forked from qt-creator/qt-creator
Wizards: Add a command to trigger a reload of all wizards
This will make the custom and the json wizard scan for their files the next time all wizards are requested. Change-Id: Ibe1ed3f838d1c177e9bbf91ed0eae49028f671cd Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
@@ -341,4 +341,9 @@ FeatureSet IWizardFactory::pluginFeatures() const
|
||||
void IWizardFactory::initialize()
|
||||
{
|
||||
connect(ICore::instance(), &ICore::coreAboutToClose, &IWizardFactory::clearWizardFactories);
|
||||
|
||||
auto resetAction = new QAction(tr("Reload All Wizards"), ActionManager::instance());
|
||||
ActionManager::registerAction(resetAction, "Wizard.Factory.Reset");
|
||||
|
||||
connect(resetAction, &QAction::triggered, &IWizardFactory::clearWizardFactories);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user