From cc15a9f6f01f28248c01485dd1e31c1c202fd2e4 Mon Sep 17 00:00:00 2001 From: Aleksey Pivovarov Date: Wed, 23 Apr 2025 16:53:37 +0200 Subject: [PATCH] TBX-14320 IJPL-49031 ui: update Project activation timestamp on opening Fix the case of "Open project in: Current window" option. GitOrigin-RevId: 0c544ab1f360b0f6b97628bc06b1d7870bc570df --- .../src/com/intellij/openapi/wm/impl/ProjectFrameHelper.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platform/platform-impl/src/com/intellij/openapi/wm/impl/ProjectFrameHelper.kt b/platform/platform-impl/src/com/intellij/openapi/wm/impl/ProjectFrameHelper.kt index 2b9abf01e654..4e9e75a21889 100644 --- a/platform/platform-impl/src/com/intellij/openapi/wm/impl/ProjectFrameHelper.kt +++ b/platform/platform-impl/src/com/intellij/openapi/wm/impl/ProjectFrameHelper.kt @@ -20,6 +20,7 @@ import com.intellij.openapi.application.EDT import com.intellij.openapi.application.ModalityState import com.intellij.openapi.application.impl.InternalUICustomization import com.intellij.openapi.application.impl.LaterInvocator +import com.intellij.openapi.components.ComponentManagerEx import com.intellij.openapi.components.serviceAsync import com.intellij.openapi.components.serviceIfCreated import com.intellij.openapi.diagnostic.Logger @@ -27,7 +28,6 @@ import com.intellij.openapi.diagnostic.debug import com.intellij.openapi.diagnostic.logger import com.intellij.openapi.fileEditor.FileEditorManager import com.intellij.openapi.fileEditor.ex.FileEditorManagerEx -import com.intellij.openapi.components.ComponentManagerEx import com.intellij.openapi.options.advanced.AdvancedSettings import com.intellij.openapi.project.Project import com.intellij.openapi.util.Disposer @@ -171,6 +171,8 @@ abstract class ProjectFrameHelper internal constructor( frame.background = JBColor.PanelBackground balloonLayout.queueRelayout() }) + + if (frame.isVisible) notifyProjectActivation() // the frame was reused from an older project and is already activated } internal open fun CoroutineScope.createFrameHeaderHelper(frame: JFrame, frameDecorator: IdeFrameDecorator?, rootPane: IdeRootPane): ProjectFrameCustomHeaderHelper =