mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-21 02:45:35 +00:00
Fixed: #2315 AS3 direct editation - switching scripts during editation causing missing scripts
This commit is contained in:
@@ -5387,6 +5387,7 @@ public final class MainPanel extends JPanel implements TreeSelectionListener, Se
|
||||
updateUi();
|
||||
}
|
||||
|
||||
clearEditingStatus();
|
||||
reload(false, false);
|
||||
|
||||
if (source == dumpTree) {
|
||||
@@ -6083,10 +6084,7 @@ public final class MainPanel extends JPanel implements TreeSelectionListener, Se
|
||||
final ScriptPack scriptLeaf = ((AS3Package) treeItem).getCompoundInitializerPack();
|
||||
if (Main.isInited() && (!Main.isWorking() || Main.isDebugging())) {
|
||||
ABCPanel abcPanel = getABCPanel();
|
||||
abcPanel.detailPanel.methodTraitPanel.methodCodePanel.clear();
|
||||
abcPanel.setAbc(scriptLeaf.abc);
|
||||
abcPanel.decompiledTextArea.setScript(scriptLeaf, true);
|
||||
abcPanel.decompiledTextArea.setNoTrait();
|
||||
abcPanel.setScript(scriptLeaf);
|
||||
abcPanel.setCompound(true);
|
||||
}
|
||||
|
||||
@@ -6100,10 +6098,7 @@ public final class MainPanel extends JPanel implements TreeSelectionListener, Se
|
||||
final ScriptPack scriptLeaf = (ScriptPack) treeItem;
|
||||
if (Main.isInited() && (!Main.isWorking() || Main.isDebugging())) {
|
||||
ABCPanel abcPanel = getABCPanel();
|
||||
abcPanel.detailPanel.methodTraitPanel.methodCodePanel.clear();
|
||||
abcPanel.setAbc(scriptLeaf.abc);
|
||||
abcPanel.decompiledTextArea.setScript(scriptLeaf, true);
|
||||
abcPanel.decompiledTextArea.setNoTrait();
|
||||
abcPanel.setScript(scriptLeaf);
|
||||
abcPanel.setCompound(!scriptLeaf.isSimple);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user