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:
Tobias Hunger
2015-05-19 15:52:16 +02:00
parent d04d63d8d4
commit 0b44b6e709

View File

@@ -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;
}