mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-12 08:58:02 -04:00
Make StartProgressWindow closeable
This commit is contained in:
parent
8a0c045dc4
commit
b0e22ea52d
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user