Skip to content

Commit

Permalink
Fixed: #2384 Vanishing pins on AS3 code editing save, on script delet…
Browse files Browse the repository at this point in the history
…ion and few other cases - few more cases
  • Loading branch information
jindrapetrik committed Jan 6, 2025
1 parent b3d3379 commit 0c812b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
6 changes: 3 additions & 3 deletions src/com/jpexs/decompiler/flash/gui/MainPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ public void clearPins() {
}

public void refreshPins() {
pinsPanel.refresh();
pinsPanel.load();
}

public void destroyPins() {
Expand Down Expand Up @@ -4796,7 +4796,7 @@ public void treeOperation(Runnable runnable) {
}

reload(true);
pinsPanel.refresh();
refreshPins();
}

public void refreshTree() {
Expand Down Expand Up @@ -4825,7 +4825,7 @@ public void refreshTree(Openable[] openables) {
}
reload(true);
updateMissingNeededCharacters();
pinsPanel.refresh();
refreshPins();
updateUiWithCurrentOpenable();
}

Expand Down
9 changes: 0 additions & 9 deletions src/com/jpexs/decompiler/flash/gui/PinsPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -441,15 +441,6 @@ public void removeItem(TreeItem item) {
}
}
}

public void refresh() {
for (PinButton button : buttons) {
button.refresh();
}
if (currentUnpinnedButton != null) {
currentUnpinnedButton.refresh();
}
}

public void refreshScriptPacks() {
for (int b = 0; b < buttons.size(); b++) {
Expand Down

0 comments on commit 0c812b1

Please sign in to comment.