Actually use newSettings
Some checks are pending
Release / Build Equicord (push) Waiting to run
Sync to Codeberg / Sync Codeberg and Github (push) Waiting to run
Test / Test (push) Waiting to run

This commit is contained in:
thororen1234 2025-01-31 14:58:50 -05:00
parent a52ca1f85e
commit 8ce8d10fb4

View file

@ -251,11 +251,11 @@ export function migrateSettingFromPlugin(newPlugin: string, newSetting: string,
const newSettings = SettingsStore.plain.plugins[newPlugin];
const oldSettings = SettingsStore.plain.plugins[oldPlugin];
if (!oldSettings || !Object.hasOwn(oldSettings, oldSetting)) return;
if (!newSettings || (Object.hasOwn(SettingsStore.plain.plugins[newPlugin], newSetting))) return;
if (!newSettings || (Object.hasOwn(newSettings, newSetting))) return;
if (Object.hasOwn(SettingsStore.plain.plugins[newPlugin], newSetting)) return;
if (Object.hasOwn(newSettings, newSetting)) return;
SettingsStore.plain.plugins[newPlugin][newSetting] = oldSettings[oldSetting];
newSettings[newSetting] = oldSettings[oldSetting];
delete oldSettings[oldSetting];
SettingsStore.markAsChanged();
}