mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
don't try to start process with progress outside of EDT (EA-25983)
This commit is contained in:
+8
-2
@@ -214,7 +214,7 @@ public final class UpdateChecker {
|
||||
}
|
||||
|
||||
final String finalPluginUrl = pluginUrl;
|
||||
ProgressManager.getInstance().runProcessWithProgressSynchronously(new Runnable() {
|
||||
Runnable updatePluginRunnable = new Runnable() {
|
||||
public void run() {
|
||||
try {
|
||||
final ProgressIndicator progressIndicator = ProgressManager.getInstance().getProgressIndicator();
|
||||
@@ -230,7 +230,13 @@ public final class UpdateChecker {
|
||||
LOG.info(e);
|
||||
}
|
||||
}
|
||||
}, IdeBundle.message("update.uploading.plugin.progress.title"), true, null);
|
||||
};
|
||||
if (ApplicationManager.getApplication().isDispatchThread()) {
|
||||
ProgressManager.getInstance().runProcessWithProgressSynchronously(updatePluginRunnable, IdeBundle.message("update.uploading.plugin.progress.title"), true, null);
|
||||
}
|
||||
else {
|
||||
updatePluginRunnable.run();
|
||||
}
|
||||
}
|
||||
return success;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user