This commit is contained in:
Alex Yatskov 2016-10-16 18:50:07 -07:00
parent c076821e37
commit 052815ae29

View File

@ -215,7 +215,12 @@ function onOptionsChanged(e) {
yomichan().setOptions(optsNew);
updateVisibility(optsNew);
if (optsNew.ankiMethod !== optsOld.ankiMethod) {
const invalidated =
optsNew.ankiMethod !== optsOld.ankiMethod ||
optsNew.ankiUsername !== optsOld.ankiUsername ||
optsNew.ankiPassword !== optsOld.ankiPassword;
if (invalidated) {
populateAnkiDeckAndModel(optsNew);
}
});