Skip to content

Commit a835247

Browse files
committed
Progress dialog was popping up behind the creation dialog. Also make
sure to update buttons
1 parent 7ed9616 commit a835247

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

EnrichmentMapPlugin/src/main/java/org/baderlab/csplugins/enrichmentmap/view/creation/MasterDetailDialogPage.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,10 @@ public String getPageComboText() {
121121

122122
@Override
123123
public void finish() {
124-
if(!validateInput())
124+
if(!validateInput()) {
125+
updateButtonEnablement();
125126
return;
127+
}
126128

127129
String prefix = EMStyleBuilder.Columns.NAMESPACE_PREFIX;
128130

@@ -169,7 +171,10 @@ public void finish() {
169171
CreateEnrichmentMapTaskFactory taskFactory = taskFactoryFactory.create(params, dataSets);
170172
TaskIterator tasks = taskFactory.createTaskIterator();
171173

172-
dialogTaskManager.execute(tasks, callback.getCloseTaskObserver());
174+
dialogTaskManager.execute(tasks);
175+
176+
callback.setFinishButtonEnabled(true);
177+
callback.close();
173178
}
174179

175180

0 commit comments

Comments
 (0)