[remotedev] GTW-1384 Fix layout of progress dialogs in Gateway started from IDE

GitOrigin-RevId: 48008cd12fe1696c9e023e84e50fe6da4c4fb982
This commit is contained in:
Filip Zybala
2023-03-01 17:24:18 +00:00
committed by intellij-monorepo-bot
parent 39adb3ef2c
commit 09fa520e3f
@@ -248,7 +248,10 @@ class ProgressDialog(private val myProgressWindow: ProgressWindow,
}
}
}
if (window.isShowing) {
// GTW-1384 - If the parent window is JOptionPane.getRootFrame() then invoke DialogWrapper(Component) instead of DialogWrapper(Project)
// because otherwise the ToolbarUtil.setTransparentTitleBar(...) is invoked.
// AFAIU: It should only affect progresses that are shown without any parent window (like the Gateway started from IDE)
if (window.isShowing || window == JOptionPane.getRootFrame()) {
return MyDialogWrapper(window)
}
return MyDialogWrapper(myProgressWindow.myProject)