[rd debugger] IDEA-378292 Fix content manager access: add listener only after creation of the content

IJ-CR-176125

GitOrigin-RevId: f0e2f619d9bd5d1ec606edf6271f1fd415055ee9
This commit is contained in:
Maksim Zuev
2025-09-25 13:08:37 +02:00
committed by intellij-monorepo-bot
parent 6e33f7aef3
commit d81776fb82

View File

@@ -168,7 +168,7 @@ class FrontendXDebuggerManager(private val project: Project, private val cs: Cor
override fun toolWindowsRegistered(ids: List<String?>, toolWindowManager: ToolWindowManager) {
for (id in ids) {
val toolWindow = toolWindowManager.getToolWindow(id) ?: continue
toolWindow.contentManager.addContentManagerListener(contentListener)
toolWindow.addContentManagerListener(contentListener)
}
}
})