Fixed Starting app with parameters causing wrong GUI init

This commit is contained in:
Jindra Petřík
2023-04-05 21:33:34 +02:00
parent bfa90f5fcf
commit 49013ed8d3
2 changed files with 2 additions and 1 deletions
+1 -1
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();