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