Exit process when application closes

This commit is contained in:
Nathan McRae 2025-02-17 21:55:40 -08:00
parent cb3f0b0938
commit 59625b773c

View File

@ -51,6 +51,10 @@ public class Main extends Application {
@Override @Override
public void start(Stage primaryStage) throws Exception { public void start(Stage primaryStage) throws Exception {
primaryStage.setOnCloseRequest(e -> {
Platform.exit();
});
try { try {
if (startParams.notification().isPresent()){ if (startParams.notification().isPresent()){
FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("NotificationView.fxml")); FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("NotificationView.fxml"));