Fixed Spam-Clicking Refresh

This commit is contained in:
Konloch 2021-07-04 19:36:31 -07:00
parent 63d7c17d0e
commit d18062fa52
2 changed files with 1 additions and 6 deletions

View file

@ -141,6 +141,7 @@ public class WorkPaneMainComponent extends VisibleComponent
refreshClass = new JButton("Refresh");
refreshClass.addActionListener((event)->{
refreshClass.setEnabled(false);
Thread t = new Thread(() -> new WorkPaneRefresh(event).run(), "Refresh");
t.start();
});

View file

@ -35,12 +35,6 @@ public class WorkPaneRefresh implements Runnable
if(tabComp == null)
return;
if(src != null)
{
JButton finalSrc = src;
SwingUtilities.invokeLater(()-> finalSrc.setEnabled(false));
}
BytecodeViewer.viewer.updateBusyStatus(true);
if (tabComp instanceof ClassViewer)