mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
test fixed
This commit is contained in:
+6
-1
@@ -445,7 +445,12 @@ public class ProgressManagerImpl extends ProgressManager implements Disposable{
|
||||
@Override
|
||||
public void run(@NotNull final Task task) {
|
||||
if (task.isHeadless()) {
|
||||
runProcessWithProgressSynchronously(task, null);
|
||||
if (ApplicationManager.getApplication().isDispatchThread()) {
|
||||
runProcessWithProgressSynchronously(task, null);
|
||||
}
|
||||
else {
|
||||
new TaskRunnable(task, new EmptyProgressIndicator()).run();
|
||||
}
|
||||
}
|
||||
else if (task.isModal()) {
|
||||
runProcessWithProgressSynchronously(task.asModal(), null);
|
||||
|
||||
Reference in New Issue
Block a user