WIP
This commit is contained in:
parent
c076821e37
commit
052815ae29
@ -215,7 +215,12 @@ function onOptionsChanged(e) {
|
|||||||
yomichan().setOptions(optsNew);
|
yomichan().setOptions(optsNew);
|
||||||
updateVisibility(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);
|
populateAnkiDeckAndModel(optsNew);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user