mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-18 03:44:54 -04:00
Launcher: onclose handler
This commit is contained in:
parent
f71474ef7f
commit
9b9d1bf1b1
@ -83,6 +83,7 @@ public class Launcher extends Application {
|
||||
primaryStage.setTitle("Minosoft");
|
||||
primaryStage.getIcons().add(GUITools.logo);
|
||||
primaryStage.show();
|
||||
primaryStage.setOnCloseRequest(windowEvent -> System.exit(0));
|
||||
|
||||
}
|
||||
}
|
@ -94,4 +94,5 @@ public class MainWindow implements Initializable {
|
||||
public void quit() {
|
||||
System.exit(0);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user