aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/options.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-01-16 22:30:53 -0800
committerAlex Yatskov <alex@foosoft.net>2017-01-16 22:30:53 -0800
commit404f3f1b164fd924a8d34521f86bf3660acdc008 (patch)
treee197a07b87a71c0907a337902aecb0e300d5d4b3 /ext/bg/js/options.js
parent268e00435f081b81ac0426bd3e316acb1bb33915 (diff)
unify dictionary enabled state
Diffstat (limited to 'ext/bg/js/options.js')
-rw-r--r--ext/bg/js/options.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/bg/js/options.js b/ext/bg/js/options.js
index 027a1539..4470c48a 100644
--- a/ext/bg/js/options.js
+++ b/ext/bg/js/options.js
@@ -97,7 +97,9 @@ function optionsVersion(options) {
copy(options.anki.kanji, 'fields', options, 'ankiKanjiFields');
for (const title in options.dictionaries) {
- options.dictionaries[title].priority = 0;
+ const dictionary = options.dictionaries[title];
+ dictionary.enabled = dictionary.enableTerms || dictionary.enableKanji;
+ dictionary.priority = 0;
}
}
];