forked from qt-creator/qt-creator
Core: Load plugin spec after install
If we don't load the spec, the rest of the App has no way to tell that we installed the plugin. Change-Id: I80a6058696172f91e3f930a9c98f3c7a00f38c38 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -555,10 +555,11 @@ bool executePluginInstallWizard(const FilePath &archive)
|
|||||||
// so we can safely set them as accepted here.
|
// so we can safely set them as accepted here.
|
||||||
PluginManager::instance()->setTermsAndConditionsAccepted(data.pluginSpec.get());
|
PluginManager::instance()->setTermsAndConditionsAccepted(data.pluginSpec.get());
|
||||||
|
|
||||||
|
auto spec = data.pluginSpec.release();
|
||||||
|
PluginManager::addPlugins({spec});
|
||||||
|
|
||||||
if (data.loadImmediately) {
|
if (data.loadImmediately) {
|
||||||
auto spec = data.pluginSpec.release();
|
|
||||||
spec->setEnabledBySettings(true);
|
spec->setEnabledBySettings(true);
|
||||||
PluginManager::addPlugins({spec});
|
|
||||||
PluginManager::loadPluginsAtRuntime({spec});
|
PluginManager::loadPluginsAtRuntime({spec});
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user