diff --git a/src/main/java/es/kauron/jstudy/Main.java b/src/main/java/es/kauron/jstudy/Main.java index ced64cf..b7570e0 100644 --- a/src/main/java/es/kauron/jstudy/Main.java +++ b/src/main/java/es/kauron/jstudy/Main.java @@ -20,6 +20,11 @@ public class Main extends Application { primaryStage.setOnHiding(event -> AppPrefs.save()); } + @Override + public void stop() throws Exception { + super.stop(); + System.exit(0); + } public static void main(String[] args) { launch(args);