mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-19 15:21:59 +00:00
#752 Sound is not stopped when you change the selectin in he tag tree from SWF to e.g any shape fixed
This commit is contained in:
@@ -61,6 +61,8 @@ public class FolderPreviewPanel extends JPanel {
|
||||
private List<TreeItem> items;
|
||||
private int selectedIndex = -1;
|
||||
private boolean repaintQueued;
|
||||
private int lastWidth;
|
||||
private int lastHeight;
|
||||
|
||||
public Map<Integer, TreeItem> selectedItems = new HashMap<>();
|
||||
|
||||
@@ -217,8 +219,9 @@ public class FolderPreviewPanel extends JPanel {
|
||||
}
|
||||
}
|
||||
|
||||
Dimension size = getSize();
|
||||
if (size.width != width || size.height != height) {
|
||||
if (lastWidth != width || lastHeight != height) {
|
||||
lastWidth = width;
|
||||
lastHeight = height;
|
||||
setSize(new Dimension(width, height));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user