Exit process when application closes
This commit is contained in:
		| @@ -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")); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user