mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-229717 Tool window in "Window" view mode stays open on changing View mode to "Dock Pinned"
GitOrigin-RevId: 661a229367ada328a80e4041ad96228d362c7ee4
This commit is contained in:
committed by
intellij-monorepo-bot
parent
b286380223
commit
4f5e47de0d
@@ -1019,11 +1019,13 @@ open class ToolWindowManagerImpl(val project: Project) : ToolWindowManagerEx(),
|
||||
|
||||
private fun removeDecoratorWithoutUpdatingState(entry: ToolWindowEntry, info: WindowInfoImpl, dirtyMode: Boolean) {
|
||||
entry.windowedDecorator?.let {
|
||||
entry.windowedDecorator = null
|
||||
Disposer.dispose(it)
|
||||
return
|
||||
}
|
||||
|
||||
entry.floatingDecorator?.let {
|
||||
entry.floatingDecorator = null
|
||||
it.dispose()
|
||||
return
|
||||
}
|
||||
@@ -1043,7 +1045,6 @@ open class ToolWindowManagerImpl(val project: Project) : ToolWindowManagerEx(),
|
||||
|
||||
entry.windowedDecorator?.let { windowedDecorator ->
|
||||
info.isActiveOnStart = windowedDecorator.isActive
|
||||
entry.windowedDecorator = null
|
||||
val frame = windowedDecorator.getFrame()
|
||||
if (frame.isShowing) {
|
||||
val maximized = (frame as JFrame).extendedState == Frame.MAXIMIZED_BOTH
|
||||
|
||||
Reference in New Issue
Block a user