main window: fix "Manage Account Modal" not blocking main window

This commit is contained in:
Bixilon 2020-10-23 20:14:30 +02:00
parent 9d12a40596
commit 89bd924bee
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

@ -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();