File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
EnrichmentMapPlugin/src/main/java/org/baderlab/csplugins/enrichmentmap/view/util Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -199,7 +199,7 @@ private JPanel createChooserPanel(List<CardDialogPage> pages) {
199
199
private JPanel createButtonPanel () {
200
200
finishButton = new JButton (new AbstractAction (params .getFinishButtonText ()) {
201
201
public void actionPerformed (ActionEvent e ) {
202
- finishButton .setEnabled (false );
202
+ finishButton .setEnabled (false ); // prevent clicking the button twice quickly
203
203
currentPage .finish ();
204
204
}
205
205
});
@@ -247,6 +247,7 @@ public Task getCloseTask() {
247
247
return new AbstractTask () {
248
248
@ Override
249
249
public void run (TaskMonitor taskMonitor ) throws Exception {
250
+ finishButton .setEnabled (true ); // because the finishButton listener disables the Finish button
250
251
close ();
251
252
}
252
253
};
You can’t perform that action at this time.
0 commit comments