fixed a bug where repeating the missed words training would still revert settings

This commit is contained in:
Jack 2020-10-18 18:47:32 +01:00
parent 0456341947
commit e1915bbf2f

View file

@ -2592,7 +2592,7 @@ function restartTest(withSameWordset = false, nosave = false) {
}
}
if (modeBeforePractise !== null) {
if (modeBeforePractise !== null && !withSameWordset) {
showNotification("Reverting to previous settings.", 1500);
changeMode(modeBeforePractise);
modeBeforePractise = null;