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.
|
||||
PluginManager::instance()->setTermsAndConditionsAccepted(data.pluginSpec.get());
|
||||
|
||||
if (data.loadImmediately) {
|
||||
auto spec = data.pluginSpec.release();
|
||||
spec->setEnabledBySettings(true);
|
||||
PluginManager::addPlugins({spec});
|
||||
|
||||
if (data.loadImmediately) {
|
||||
spec->setEnabledBySettings(true);
|
||||
PluginManager::loadPluginsAtRuntime({spec});
|
||||
}
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user