From 6589db0be7d95f3259c5ac62d1857c550473087a Mon Sep 17 00:00:00 2001 From: Marcus Tillmanns Date: Tue, 21 Jan 2025 14:17:29 +0100 Subject: [PATCH] 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 --- src/plugins/coreplugin/plugininstallwizard.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/plugins/coreplugin/plugininstallwizard.cpp b/src/plugins/coreplugin/plugininstallwizard.cpp index c252a21e38c..1a0ce9247be 100644 --- a/src/plugins/coreplugin/plugininstallwizard.cpp +++ b/src/plugins/coreplugin/plugininstallwizard.cpp @@ -555,10 +555,11 @@ bool executePluginInstallWizard(const FilePath &archive) // so we can safely set them as accepted here. PluginManager::instance()->setTermsAndConditionsAccepted(data.pluginSpec.get()); + auto spec = data.pluginSpec.release(); + PluginManager::addPlugins({spec}); + if (data.loadImmediately) { - auto spec = data.pluginSpec.release(); spec->setEnabledBySettings(true); - PluginManager::addPlugins({spec}); PluginManager::loadPluginsAtRuntime({spec}); } return true;