Fix bug on close
This commit is contained in:
parent
8e4d54b70f
commit
0e36273ab9
1 changed files with 6 additions and 0 deletions
|
@ -2,6 +2,7 @@ package fr.univ.lyon1.gui;
|
|||
|
||||
import fr.univ.lyon1.common.ServerConfiguration;
|
||||
import javafx.application.Application;
|
||||
import javafx.application.Platform;
|
||||
import javafx.fxml.FXMLLoader;
|
||||
import javafx.scene.Group;
|
||||
import javafx.scene.Scene;
|
||||
|
@ -46,6 +47,11 @@ public class MainGui extends Application {
|
|||
System.exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
stage.setOnCloseRequest(event -> {
|
||||
Platform.exit();
|
||||
System.exit(0);
|
||||
});
|
||||
}
|
||||
|
||||
private void launchServerConfiguration(Stage stage) throws IOException {
|
||||
|
|
Reference in a new issue