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:
Marcus Tillmanns
2025-01-21 14:17:29 +01:00
parent a50a8a4f78
commit 6589db0be7

View File

@@ -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());
if (data.loadImmediately) {
auto spec = data.pluginSpec.release(); auto spec = data.pluginSpec.release();
spec->setEnabledBySettings(true);
PluginManager::addPlugins({spec}); PluginManager::addPlugins({spec});
if (data.loadImmediately) {
spec->setEnabledBySettings(true);
PluginManager::loadPluginsAtRuntime({spec}); PluginManager::loadPluginsAtRuntime({spec});
} }
return true; return true;