From f93f4a5b325a2761b104fdbb7c153c8b2afc0fcd Mon Sep 17 00:00:00 2001 From: Aleksey Pivovarov Date: Fri, 13 Feb 2026 16:53:48 +0100 Subject: [PATCH] [ui] IJPL-217259 do not init ToolWindow to update its background color GitOrigin-RevId: 42a50d2b9a6fffcf062a22c5aec95ed8d6ff819f --- .../src/com/intellij/openapi/wm/impl/ToolWindowImpl.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/platform-impl/src/com/intellij/openapi/wm/impl/ToolWindowImpl.kt b/platform/platform-impl/src/com/intellij/openapi/wm/impl/ToolWindowImpl.kt index 5520453ccae1..264f6da7b202 100644 --- a/platform/platform-impl/src/com/intellij/openapi/wm/impl/ToolWindowImpl.kt +++ b/platform/platform-impl/src/com/intellij/openapi/wm/impl/ToolWindowImpl.kt @@ -236,8 +236,8 @@ private val LOG = logger() internal fun updateContentBackgroundColors() { val color = JBUI.CurrentTheme.ToolWindow.background() - - for (content in contentManager.value.contents) { + val contentManager = contentManager.valueIfInitialized ?: return + for (content in contentManager.contents) { InternalDecoratorImpl.setBackgroundRecursively(content.component, color) } }