mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-12 17:07:55 -04:00
main window: fix "Manage Account Modal" not blocking main window
This commit is contained in:
parent
9d12a40596
commit
89bd924bee
@ -79,14 +79,14 @@ public class Launcher {
|
|||||||
stage.setTitle(LocaleManager.translate(Strings.MAIN_WINDOW_TITLE));
|
stage.setTitle(LocaleManager.translate(Strings.MAIN_WINDOW_TITLE));
|
||||||
stage.getIcons().add(GUITools.logo);
|
stage.getIcons().add(GUITools.logo);
|
||||||
stage.setOnCloseRequest(windowEvent -> System.exit(0));
|
stage.setOnCloseRequest(windowEvent -> System.exit(0));
|
||||||
if (Minosoft.getSelectedAccount() == null) {
|
|
||||||
MainWindow.manageAccounts();
|
|
||||||
}
|
|
||||||
if (exit) {
|
if (exit) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
stage.show();
|
stage.show();
|
||||||
Launcher.stage = stage;
|
Launcher.stage = stage;
|
||||||
|
if (Minosoft.getSelectedAccount() == null) {
|
||||||
|
MainWindow.manageAccounts();
|
||||||
|
}
|
||||||
latch.countDown();
|
latch.countDown();
|
||||||
});
|
});
|
||||||
latch.await();
|
latch.await();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user