Reload Resource Fix
This fixes the resources being added twice but introduced a new bug, now reload resources resets the resource list. A better solution would be to preserve the original list, then add or remove anything new that was found, while updating the byte[] and ClassNodes of the existing resource containers
This commit is contained in:
parent
7819fe6575
commit
7056c0bd40
1 changed files with 1 additions and 0 deletions
|
@ -875,6 +875,7 @@ public class MainViewerGUI extends JFrame
|
||||||
reopen.add(container.file);
|
reopen.add(container.file);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BytecodeViewer.viewer.resourcePane.treeRoot.removeAllChildren();
|
||||||
BytecodeViewer.resourceContainers.clear();
|
BytecodeViewer.resourceContainers.clear();
|
||||||
|
|
||||||
for (File f : reopen)
|
for (File f : reopen)
|
||||||
|
|
Loading…
Reference in a new issue