mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-02 06:14:18 +00:00
Fixed: #2315 AS3 direct editation - switching scripts during editation causing missing scripts
This commit is contained in:
@@ -2102,4 +2102,14 @@ public class ABCPanel extends JPanel implements ItemListener, SearchListener<Scr
|
||||
flexLabel.setVisible(useFlex && !value);
|
||||
editDecompiledButton.setEnabled(!value);
|
||||
}
|
||||
|
||||
public void setScript(ScriptPack scriptPack) {
|
||||
setDecompiledEditMode(false);
|
||||
detailPanel.setEditMode(false);
|
||||
detailPanel.methodTraitPanel.methodCodePanel.clear();
|
||||
setAbc(scriptPack.abc);
|
||||
decompiledTextArea.setScript(scriptPack, true);
|
||||
decompiledTextArea.setNoTrait();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user