mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[remotedev] GTW-1384 Fix layout of progress dialogs in Gateway started from IDE
GitOrigin-RevId: 48008cd12fe1696c9e023e84e50fe6da4c4fb982
This commit is contained in:
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)
|
||||
|
||||
Reference in New Issue
Block a user