Make StartProgressWindow closeable

This commit is contained in:
Bixilon 2020-10-28 22:50:10 +01:00
parent 8a0c045dc4
commit b0e22ea52d
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

@ -56,6 +56,7 @@ public class StartProgressWindow extends Application {
progressDialog.getDialogPane().setContent(grid); progressDialog.getDialogPane().setContent(grid);
Stage stage = (Stage) progressDialog.getDialogPane().getScene().getWindow(); Stage stage = (Stage) progressDialog.getDialogPane().getScene().getWindow();
stage.initModality(Modality.APPLICATION_MODAL); stage.initModality(Modality.APPLICATION_MODAL);
stage.setOnCloseRequest((request) -> System.exit(0));
if (exit) { if (exit) {
return; return;
} }