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 <eike.ziller@qt.io>
This commit is contained in:
Marcus Tillmanns
2024-09-16 09:47:35 +02:00
parent d6e3e1d328
commit 950f5abbe1

View File

@@ -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);