From ada4df1971f8fb0a1efc6d094a5c03cc7fdd4d5b Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sat, 20 Aug 2022 11:29:31 -0400 Subject: Fix invalid default values for popupTheme and popupOuterTheme (#2180) * Fix invalid default values for popupTheme and popupOuterTheme * Options update --- ext/js/data/options-util.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'ext/js/data') diff --git a/ext/js/data/options-util.js b/ext/js/data/options-util.js index 8c50493a..d2835adb 100644 --- a/ext/js/data/options-util.js +++ b/ext/js/data/options-util.js @@ -980,8 +980,17 @@ class OptionsUtil { _updateVersion20(options) { // Version 20 changes: // Added anki.downloadTimeout. + // Fixed general.popupTheme invalid default. + // Fixed general.popupOuterTheme invalid default. for (const profile of options.profiles) { profile.options.anki.downloadTimeout = 0; + const {general} = profile.options; + if (general.popupTheme === 'default') { + general.popupTheme = 'light'; + } + if (general.popupOuterTheme === 'default') { + general.popupOuterTheme = 'light'; + } } return options; } -- cgit v1.2.3