From 49013ed8d3327338fcd1ece6cfc00b3ff1f56bb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Sat, 25 Mar 2023 18:30:33 +0100 Subject: [PATCH] Fixed Starting app with parameters causing wrong GUI init --- CHANGELOG.md | 1 + src/com/jpexs/decompiler/flash/gui/Main.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a7d9663f5..4b0b0a336 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ All notable changes to this project will be documented in this file. - [#1993] Incorrect scroll position causing shapes to be hidden - [#1994] Replace command in commandline with three argument causing replacements file load - [#1477] Open file (Context menu) with unicode characters, unicode in paths, on Windows +- Starting app with parameters causing wrong GUI init ## [18.4.0] - 2023-03-19 ### Added diff --git a/src/com/jpexs/decompiler/flash/gui/Main.java b/src/com/jpexs/decompiler/flash/gui/Main.java index 500f30903..aa85624e0 100644 --- a/src/com/jpexs/decompiler/flash/gui/Main.java +++ b/src/com/jpexs/decompiler/flash/gui/Main.java @@ -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();