mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-25 05:21:09 +00:00
swf disposing fixes
This commit is contained in:
@@ -732,14 +732,7 @@ public final class MainPanel extends JPanel implements ActionListener, TreeSelec
|
||||
}*/
|
||||
swfs.clear();
|
||||
oldItem = null;
|
||||
previewPanel.clear();
|
||||
if (abcPanel != null) {
|
||||
abcPanel.clearSwf();
|
||||
}
|
||||
if (actionPanel != null) {
|
||||
actionPanel.clearSource();
|
||||
}
|
||||
previewPanel.clear();
|
||||
clear();
|
||||
updateUi();
|
||||
refreshTree();
|
||||
}
|
||||
@@ -759,18 +752,8 @@ public final class MainPanel extends JPanel implements ActionListener, TreeSelec
|
||||
}
|
||||
|
||||
swfs.remove(swfList);
|
||||
if (abcPanel != null) {
|
||||
for (SWF swf : swfList) {
|
||||
if (abcPanel.getSwf() == swf) {
|
||||
abcPanel.clearSwf();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (actionPanel != null) {
|
||||
actionPanel.clearSource();
|
||||
}
|
||||
oldItem = null;
|
||||
previewPanel.clear();
|
||||
clear();
|
||||
updateUi();
|
||||
refreshTree();
|
||||
}
|
||||
@@ -1916,8 +1899,19 @@ public final class MainPanel extends JPanel implements ActionListener, TreeSelec
|
||||
refreshTree();
|
||||
}
|
||||
|
||||
public void refreshTree() {
|
||||
private void clear() {
|
||||
dumpViewPanel.clear();
|
||||
previewPanel.clear();
|
||||
if (abcPanel != null) {
|
||||
abcPanel.clearSwf();
|
||||
}
|
||||
if (actionPanel != null) {
|
||||
actionPanel.clearSource();
|
||||
}
|
||||
}
|
||||
|
||||
public void refreshTree() {
|
||||
clear();
|
||||
showCard(CARDEMPTYPANEL);
|
||||
TreeItem treeItem = tagTree.getCurrentTreeItem();
|
||||
DumpInfo dumpInfo = (DumpInfo) dumpTree.getLastSelectedPathComponent();
|
||||
|
||||
@@ -138,6 +138,10 @@ public class DumpViewPanel extends JPanel {
|
||||
add(new JScrollPane(dumpViewHexTable), BorderLayout.CENTER);
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
selectedDumpInfo = null;
|
||||
}
|
||||
|
||||
public void setSelectedNode(DumpInfo dumpInfo) {
|
||||
if (this.selectedDumpInfo == dumpInfo) {
|
||||
skipNextScroll = false;
|
||||
|
||||
Reference in New Issue
Block a user