Fixed Starting app with parameters causing wrong GUI init

This commit is contained in:
Jindra Petřík
2023-03-25 18:30:33 +01:00
parent bfa90f5fcf
commit 49013ed8d3
2 changed files with 2 additions and 1 deletions

View File

@@ -2709,8 +2709,8 @@ public class Main {
setSessionLoaded(true);
String[] filesToOpen = CommandLineArgumentParser.parseArguments(args);
if (filesToOpen != null && filesToOpen.length > 0) {
initGui();
View.execInEventDispatch(() -> {
initGui();
shouldCloseWhenClosingLoadingDialog = true;
if (Configuration.allowOnlyOneInstance.get() && FirstInstance.openFiles(Arrays.asList(filesToOpen))) { //Try to open in first instance
Main.exit();