[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:
Konstantin Nisht
2025-05-27 15:52:29 +00:00
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();
}
}
/**