Fixed: #2384 Vanishing pins on AS3 code editing save

This commit is contained in:
Jindra Petřík
2024-12-30 15:13:25 +01:00
parent 1d3fbf0f16
commit 96744b54fa
2 changed files with 6 additions and 0 deletions

View File

@@ -1734,6 +1734,10 @@ public class ABCPanel extends JPanel implements ItemListener, SearchListener<Scr
if (oldSp != null) {
hilightScript(localAbc.getOpenable(), oldSp, scriptNode);
TreeItem sel = mainPanel.getCurrentTree().getCurrentTreeItem();
if ((sel instanceof ScriptPack) && (sel != pack)) {
mainPanel.replaceItemPin(pack, sel);
}
}
reload();
mainPanel.clearEditingStatus();