Fix inverted settings default value

Currently it doesn't matter what's set in the default property once the invertedSettingName property exists
pull/21833/head
su-ex 2020-11-03 20:41:59 +01:00
parent dbf2394668
commit 20f3ab0293
No known key found for this signature in database
GPG Key ID: D743C50C8B61984C
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ for (const key of Object.keys(SETTINGS)) {
if (SETTINGS[key].invertedSettingName) {
// Invert now so that the rest of the system will invert it back
// to what was intended.
invertedDefaultSettings[key] = !SETTINGS[key].default;
invertedDefaultSettings[SETTINGS[key].invertedSettingName] = !SETTINGS[key].default;
}
}