Fix inverted settings default value

Currently it doesn't matter what's set in the default property once the invertedSettingName property exists
This commit is contained in:
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

View file

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