From 379505e630ebd60cc5e795cbf45f81f64b6c0b0d Mon Sep 17 00:00:00 2001 From: Carlos Galindo Date: Sun, 12 Jun 2016 17:04:28 +0200 Subject: [PATCH] Test: don't show feedback on first question --- src/main/java/es/kauron/jstudy/controller/TestController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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());