mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-26 11:15:34 +00:00
Properly handling close all
This commit is contained in:
@@ -993,15 +993,25 @@ public final class MainPanel extends JPanel implements TreeSelectionListener, Se
|
||||
swfs.clear();
|
||||
oldItem = null;
|
||||
clear();
|
||||
updateUi();
|
||||
|
||||
updateUi();
|
||||
|
||||
List<SWF> swfsToClose = new ArrayList<>();
|
||||
for (SWFList swfList : swfsLists) {
|
||||
List<SWF> swfs2 = new ArrayList<>(swfList);
|
||||
for (SWF swf : swfs2) {
|
||||
swf.clearTagSwfs();
|
||||
swfsToClose.addAll(swfList);
|
||||
for (SWF swf : swfList) {
|
||||
Main.populateSwfs(swf, swfsToClose);
|
||||
}
|
||||
}
|
||||
|
||||
for (SWF swf : swfsToClose) {
|
||||
swf.clearTagSwfs();
|
||||
}
|
||||
|
||||
refreshTree();
|
||||
|
||||
mainMenu.updateComponents(null);
|
||||
previewPanel.clear();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user