forked from qt-creator/qt-creator
Wizards: Do not list json wizards that go with plugins that are not loaded
This needs the patch that splits features and plugins in the json wizard and makes sure that the requiredFeatures are ignored by the "All templates" selector in the NewDialog while the "enabled" statement of the JSON wizard still takes effect. Change-Id: I76fd5d72a73af064cf5047a6a43aec6598f675bf Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
This commit is contained in:
@@ -255,6 +255,9 @@ QString IWizardFactory::runPath(const QString &defaultPath)
|
|||||||
|
|
||||||
bool IWizardFactory::isAvailable(const QString &platformName) const
|
bool IWizardFactory::isAvailable(const QString &platformName) const
|
||||||
{
|
{
|
||||||
|
if (platformName.isEmpty())
|
||||||
|
return true;
|
||||||
|
|
||||||
return availableFeatures(platformName).contains(requiredFeatures());
|
return availableFeatures(platformName).contains(requiredFeatures());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user