mirror of
https://gitlab.com/kauron/jstudy
synced 2024-12-22 16:33:33 +01:00
Corrected repeat mistakes, it kept on increasing the bars
This commit is contained in:
parent
e8111c0714
commit
f61c0a40ba
1 changed files with 2 additions and 2 deletions
|
@ -53,6 +53,8 @@ public class TestController implements Initializable {
|
||||||
// Remove the question from the pool if the question was correctly answered or there is no repetition
|
// Remove the question from the pool if the question was correctly answered or there is no repetition
|
||||||
if (right || !AppConfig.repeatWrong) {
|
if (right || !AppConfig.repeatWrong) {
|
||||||
list.remove(current);
|
list.remove(current);
|
||||||
|
progress.setProgress(progress.getProgress() + 1.0/total);
|
||||||
|
progressLabel.setText((int) (progress.getProgress() * total) + "/" + total);
|
||||||
if (list.size() == 0) {
|
if (list.size() == 0) {
|
||||||
answer.setText("");
|
answer.setText("");
|
||||||
answer.setDisable(true);
|
answer.setDisable(true);
|
||||||
|
@ -60,8 +62,6 @@ public class TestController implements Initializable {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
progress.setProgress(progress.getProgress() + 1.0/total);
|
|
||||||
progressLabel.setText((int) (progress.getProgress() * total) + "/" + total);
|
|
||||||
onSkipAction(event);
|
onSkipAction(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue