migratePluginToSetting: Enable New Plugin
This commit is contained in:
parent
452b7a50a0
commit
2b9a173caa
1 changed files with 1 additions and 0 deletions
|
|
@ -235,6 +235,7 @@ export function migratePluginToSetting(newName: string, oldName: string, setting
|
|||
if (oldPlugin?.enabled) {
|
||||
newPlugin[settingName] = true;
|
||||
oldPlugin.enabled = false;
|
||||
if (!newPlugin?.enabled) newPlugin.enabled = true;
|
||||
SettingsStore.markAsChanged();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue