forked from qt-creator/qt-creator
WizardFactory: Trigger scan for wizards early
Trigger scan for wizards in delayedInitialize since we need to create commands for the wizards. Also make sure wizards are scanned for when opening the options page, so that the keyboard shortcut page can be fully populated. Change-Id: Iefe28dbcb17f43a7ed114f056012fe8f6e4ae352 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
@@ -211,6 +211,9 @@ bool CorePlugin::initialize(const QStringList &arguments, QString *errorMessage)
|
||||
expander->registerPrefix("CurrentTime:", tr("The current time (QTime formatstring)."),
|
||||
[](const QString &fmt) { return QTime::currentTime().toString(fmt); });
|
||||
|
||||
// Make sure all wizards are there when the user might access the keyboard shortcuts:
|
||||
connect(ICore::instance(), &ICore::optionsDialogRequested, []() { IWizardFactory::allWizardFactories(); });
|
||||
|
||||
return success;
|
||||
}
|
||||
|
||||
@@ -233,6 +236,7 @@ bool CorePlugin::delayedInitialize()
|
||||
{
|
||||
HelpManager::setupHelpManager();
|
||||
m_locator->delayedInitialize();
|
||||
IWizardFactory::allWizardFactories(); // scan for all wizard factories
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user