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:
Konloch 2021-07-21 10:05:05 -07:00
parent 7819fe6575
commit 7056c0bd40

View file

@ -875,6 +875,7 @@ public class MainViewerGUI extends JFrame
reopen.add(container.file);
}
BytecodeViewer.viewer.resourcePane.treeRoot.removeAllChildren();
BytecodeViewer.resourceContainers.clear();
for (File f : reopen)