mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
transfer to EDT (e.g. for vfs refresh) in a correct modalilty state during project loading
This commit is contained in:
@@ -44,6 +44,6 @@ fun invokeAndWaitIfNeed(runnable: () -> Unit) {
|
||||
if (SwingUtilities.isEventDispatchThread()) runnable() else SwingUtilities.invokeAndWait(runnable)
|
||||
}
|
||||
else {
|
||||
app.invokeAndWait(runnable, ModalityState.any())
|
||||
app.invokeAndWait(runnable, ModalityState.defaultModalityState())
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -744,7 +744,7 @@ public abstract class ModuleManagerImpl extends ModuleManager implements Project
|
||||
String path = moduleFile.getPath();
|
||||
ModuleEx module = getModuleByFilePath(path);
|
||||
if (module == null) {
|
||||
ApplicationManager.getApplication().invokeAndWait(() -> moduleFile.refresh(false, false), ModalityState.any());
|
||||
ApplicationManager.getApplication().invokeAndWait(() -> moduleFile.refresh(false, false), ModalityState.defaultModalityState());
|
||||
module = createAndLoadModule(path);
|
||||
initModule(module, path, null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user