Assessment Generator behaviour update

On not enough practice words the screen is no longer force to switch to the dictionary and remains on the previously selected one
This commit is contained in:
law39 2020-04-30 09:26:51 +01:00
parent 134e942740
commit 76e69d2859

View file

@ -43,8 +43,7 @@ public class AssessmentGenerator {
alert.setHeaderText("Not enough words in practice list");
alert.setResizable(false);
alert.setContentText("Please add more words to your practice list on the dictionary page before trying to test yourself!");
Optional<ButtonType> result = alert.showAndWait();
ScreenSwitch.swap(ScreenSwitch.SceneEnum.dictionaryScene);
alert.showAndWait();
}else {
for (int numberToGenerate = 0; numberToGenerate < 10; numberToGenerate++) {