forked from qt-creator/qt-creator
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:
@@ -1024,9 +1024,9 @@ void PluginManagerPrivate::writeSettings()
|
|||||||
QStringList tempForceEnabledPlugins;
|
QStringList tempForceEnabledPlugins;
|
||||||
for (PluginSpec *spec : std::as_const(pluginSpecs)) {
|
for (PluginSpec *spec : std::as_const(pluginSpecs)) {
|
||||||
if (spec->isEnabledByDefault() && !spec->isEnabledBySettings())
|
if (spec->isEnabledByDefault() && !spec->isEnabledBySettings())
|
||||||
tempDisabledPlugins.append(spec->name());
|
tempDisabledPlugins.append(spec->id());
|
||||||
if (!spec->isEnabledByDefault() && spec->isEnabledBySettings())
|
if (!spec->isEnabledByDefault() && spec->isEnabledBySettings())
|
||||||
tempForceEnabledPlugins.append(spec->name());
|
tempForceEnabledPlugins.append(spec->id());
|
||||||
}
|
}
|
||||||
|
|
||||||
settings->setValueWithDefault(C_IGNORED_PLUGINS, tempDisabledPlugins);
|
settings->setValueWithDefault(C_IGNORED_PLUGINS, tempDisabledPlugins);
|
||||||
|
Reference in New Issue
Block a user