From 439b9b7ef89876fdfb8b1acbcae03a05bf18a42d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Fri, 6 Oct 2023 21:21:16 +0200 Subject: [PATCH] Fixed #2095 AS3 Changing script when debugging --- CHANGELOG.md | 2 ++ src/com/jpexs/decompiler/flash/gui/MainPanel.java | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9a778c788..f3351e62b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ All notable changes to this project will be documented in this file. - [#2094] Embed font name taken from the fontTag, not DefineFontName - AS3 Simplify expressions - Do not convert this to {} when coerced - AS3 incorrect private modifier on internal namespaced traits of private class inside script +- [#2095] AS3 Changing script when debugging ## [19.0.0] - 2023-10-01 ### Added @@ -3138,6 +3139,7 @@ Major version of SWF to XML export changed to 2. [#2093]: https://www.free-decompiler.com/flash/issues/2093 [#1678]: https://www.free-decompiler.com/flash/issues/1678 [#2094]: https://www.free-decompiler.com/flash/issues/2094 +[#2095]: https://www.free-decompiler.com/flash/issues/2095 [#1449]: https://www.free-decompiler.com/flash/issues/1449 [#2070]: https://www.free-decompiler.com/flash/issues/2070 [#2073]: https://www.free-decompiler.com/flash/issues/2073 diff --git a/src/com/jpexs/decompiler/flash/gui/MainPanel.java b/src/com/jpexs/decompiler/flash/gui/MainPanel.java index 1a2381efc..4587f7945 100644 --- a/src/com/jpexs/decompiler/flash/gui/MainPanel.java +++ b/src/com/jpexs/decompiler/flash/gui/MainPanel.java @@ -5354,7 +5354,7 @@ public final class MainPanel extends JPanel implements TreeSelectionListener, Se if ((treeItem instanceof AS3Package) && ((AS3Package) treeItem).isCompoundScript()) { final ScriptPack scriptLeaf = ((AS3Package) treeItem).getCompoundInitializerPack(); - if (Main.isInited() && !Main.isWorking() && !Main.isDebugging()) { + if (Main.isInited() && (!Main.isWorking() || Main.isDebugging())) { ABCPanel abcPanel = getABCPanel(); abcPanel.detailPanel.methodTraitPanel.methodCodePanel.clear(); abcPanel.setAbc(scriptLeaf.abc); @@ -5371,7 +5371,7 @@ public final class MainPanel extends JPanel implements TreeSelectionListener, Se showCard(CARDACTIONSCRIPT3PANEL); } else if (treeItem instanceof ScriptPack) { final ScriptPack scriptLeaf = (ScriptPack) treeItem; - if (Main.isInited() && !Main.isWorking() && !Main.isDebugging()) { + if (Main.isInited() && (!Main.isWorking() || Main.isDebugging())) { ABCPanel abcPanel = getABCPanel(); abcPanel.detailPanel.methodTraitPanel.methodCodePanel.clear(); abcPanel.setAbc(scriptLeaf.abc);