mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[threading] KTIJ-34335 IDEA-373502: Wrap modal dialogs into background write action unless they are modal progresses
This is a technical debt, in the ideal world dialogs do not run with write-intent read action in order to permit background WA bound to them GitOrigin-RevId: 30a39877c8de8f92644c925124e21dd9222e6136
This commit is contained in:
committed by
intellij-monorepo-bot
parent
786c11b372
commit
6cbd219db5
@@ -1819,7 +1819,13 @@ public abstract class DialogWrapper {
|
||||
ClientProperty.put(window, KEEP_POPUPS_OPEN, myKeepPopupsOpen);
|
||||
}
|
||||
|
||||
myPeer.show();
|
||||
if (!isProgressDialog()) {
|
||||
WriteIntentReadAction.run((Runnable) () -> {
|
||||
myPeer.show();
|
||||
});
|
||||
} else {
|
||||
myPeer.show();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user