From 950f5abbe15fb545756b6d81e47c88e4292ad3a3 Mon Sep 17 00:00:00 2001 From: Marcus Tillmanns Date: Mon, 16 Sep 2024 09:47:35 +0200 Subject: [PATCH] PluginManager: Fix plugin enable/disable settings We need to store the id, not the name, in the settings. Change-Id: I7ab9c9ff7645972754b8eb1ed4da75bedeab95fc Reviewed-by: Eike Ziller --- src/libs/extensionsystem/pluginmanager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/extensionsystem/pluginmanager.cpp b/src/libs/extensionsystem/pluginmanager.cpp index ae7cc386cc4..876bd31e80b 100644 --- a/src/libs/extensionsystem/pluginmanager.cpp +++ b/src/libs/extensionsystem/pluginmanager.cpp @@ -1024,9 +1024,9 @@ void PluginManagerPrivate::writeSettings() QStringList tempForceEnabledPlugins; for (PluginSpec *spec : std::as_const(pluginSpecs)) { if (spec->isEnabledByDefault() && !spec->isEnabledBySettings()) - tempDisabledPlugins.append(spec->name()); + tempDisabledPlugins.append(spec->id()); if (!spec->isEnabledByDefault() && spec->isEnabledBySettings()) - tempForceEnabledPlugins.append(spec->name()); + tempForceEnabledPlugins.append(spec->id()); } settings->setValueWithDefault(C_IGNORED_PLUGINS, tempDisabledPlugins);