Fixed Spam-Clicking Refresh
This commit is contained in:
parent
63d7c17d0e
commit
d18062fa52
2 changed files with 1 additions and 6 deletions
|
@ -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();
|
||||
});
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue