From ffa7b02c203c35788dc6f70b2fde81bc3c28cfd1 Mon Sep 17 00:00:00 2001 From: luca mosetti Date: Sun, 9 Sep 2018 14:55:35 +0200 Subject: [PATCH] Hotfixes --- .../me/gekoramy/github/quiz/app/preview/PreviewPresenter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/gekoramy/github/quiz/app/preview/PreviewPresenter.java b/src/main/java/me/gekoramy/github/quiz/app/preview/PreviewPresenter.java index c777d44..b2660f1 100755 --- a/src/main/java/me/gekoramy/github/quiz/app/preview/PreviewPresenter.java +++ b/src/main/java/me/gekoramy/github/quiz/app/preview/PreviewPresenter.java @@ -96,7 +96,7 @@ public void initialize(URL location, ResourceBundle resources) { lblRepo.setText(updateAvailable.getRepo().getName()); - progress.progressProperty().bind(examStarter.getQuestionPool().todoProperty().divide(examStarter.getQuestionPool().total())); + progress.progressProperty().bind(examStarter.getQuestionPool().todoProperty().divide((double) examStarter.getQuestionPool().total())); btnRevert.visibleProperty().bind(Bindings.equal(0, examStarter.getQuestionPool().todoProperty())); btnStart.visibleProperty().bind(btnRevert.visibleProperty().not());