diff --git a/ext/bg/js/util.js b/ext/bg/js/util.js index 23173d3f..37fb0843 100644 --- a/ext/bg/js/util.js +++ b/ext/bg/js/util.js @@ -172,6 +172,21 @@ function optionsVersion(options) { fixupFields(options.anki.terms.fields); fixupFields(options.anki.kanji.fields); + }, + () => { + let hasEnabledDict = false; + for (const title in options.dictionaries) { + if (options.dictionaries[title].enabled) { + hasEnabledDict = true; + break; + } + } + + if (!hasEnabledDict) { + for (const title in options.dictionaries) { + options.dictionaries[title].enabled = true; + } + } } ];