mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-18 16:38:08 +00:00
Fixed Move tag to action did not remove original tag
Properly handle pins on moveto action
This commit is contained in:
@@ -422,6 +422,14 @@ public final class MainPanel extends JPanel implements TreeSelectionListener, Se
|
||||
pinsPanel.destroy();
|
||||
}
|
||||
|
||||
public void destroyItemPin(TreeItem item) {
|
||||
pinsPanel.removeItem(item);
|
||||
}
|
||||
|
||||
public void replaceItemPin(TreeItem oldItem, TreeItem newItem) {
|
||||
pinsPanel.replaceItem(oldItem, newItem);
|
||||
}
|
||||
|
||||
private void handleTreeKeyReleased(KeyEvent e) {
|
||||
AbstractTagTree tree = (AbstractTagTree) e.getSource();
|
||||
if ((e.getKeyCode() == KeyEvent.VK_UP
|
||||
@@ -3478,7 +3486,7 @@ public final class MainPanel extends JPanel implements TreeSelectionListener, Se
|
||||
}
|
||||
}
|
||||
|
||||
swf.removeTags(toRemove, true);
|
||||
swf.removeTags(toRemove, true, null);
|
||||
refreshTree(swf);
|
||||
}
|
||||
|
||||
@@ -3507,7 +3515,7 @@ public final class MainPanel extends JPanel implements TreeSelectionListener, Se
|
||||
}
|
||||
}
|
||||
|
||||
swf.removeTags(tagsToRemove, true);
|
||||
swf.removeTags(tagsToRemove, true, null);
|
||||
refreshTree(swf);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user