1
0
Fork 0
mirror of https://gitlab.com/kauron/jstudy synced 2024-11-13 07:33:44 +01:00

Test: removed bug where correcting an error would generate extra items

This commit is contained in:
Carlos Galindo 2019-09-13 18:21:37 +02:00
parent 2f82568f46
commit 8a279ae1cb
Signed by: kauron
GPG key ID: 83E68706DEE119A3

View file

@ -108,9 +108,11 @@ public class TestController implements Initializable {
} }
chooseQuestion(); chooseQuestion();
} else if (AppPrefs.repeatImmediately.get()) { } else if (AppPrefs.repeatImmediately.get()) {
correctingError.set(true);
item.set(new TestItem(item.get())); item.set(new TestItem(item.get()));
if (!correctingError.get()) {
correctingError.set(true);
list.add(item.get()); list.add(item.get());
}
} else { } else {
chooseQuestion(); chooseQuestion();
} }