diff --git a/src/main/java/es/kauron/jstudy/controller/TestController.java b/src/main/java/es/kauron/jstudy/controller/TestController.java index 9cfc111..d532946 100644 --- a/src/main/java/es/kauron/jstudy/controller/TestController.java +++ b/src/main/java/es/kauron/jstudy/controller/TestController.java @@ -25,7 +25,7 @@ public class TestController implements Initializable { private HBox feedback; private List list; - private int total, current; + private int total, current = -1; private int done = 0, errors = 0; @Override @@ -77,6 +77,7 @@ public class TestController implements Initializable { private void onSkipAction(ActionEvent event) { feedback.setVisible(AppConfig.showFeedback); answer.setText(""); + if (current == -1) feedback.setVisible(false); int previous = current; while (list.size() > 1 && current == previous) current = (int) (Math.random() * list.size());