File tree Expand file tree Collapse file tree
jadx-gui/src/main/java/jadx/gui Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -86,11 +86,13 @@ public void open() {
8686
8787 // TODO: check and move into core package
8888 public void unloadClasses () {
89- for (ClassNode cls : getDecompiler ().getRoot ().getClasses ()) {
90- ProcessState clsState = cls .getState ();
91- cls .unload ();
92- cls .setState (clsState == PROCESS_COMPLETE ? GENERATED_AND_UNLOADED : NOT_LOADED );
93- }
89+ getCurrentDecompiler ().ifPresent (decompiler -> {
90+ for (ClassNode cls : decompiler .getRoot ().getClasses ()) {
91+ ProcessState clsState = cls .getState ();
92+ cls .unload ();
93+ cls .setState (clsState == PROCESS_COMPLETE ? GENERATED_AND_UNLOADED : NOT_LOADED );
94+ }
95+ });
9496 }
9597
9698 public void close () {
Original file line number Diff line number Diff line change @@ -205,7 +205,6 @@ public void dispose() {
205205 removeActiveTabListener ();
206206 searchBackgroundExecutor .execute (() -> {
207207 stopSearchTask ();
208- mainWindow .getBackgroundExecutor ().waitForComplete ();
209208 unloadTempData ();
210209 });
211210 super .dispose ();
You can’t perform that action at this time.
0 commit comments