From c0c5c83dad678c06255d7ecbd634f4d328a92ef5 Mon Sep 17 00:00:00 2001 From: pengx17 Date: Mon, 5 Aug 2024 03:11:55 +0000 Subject: [PATCH] fix(electron): should activate the target tab when closing other tabs (#7704) fix PD-1520 --- packages/frontend/electron/src/main/windows-manager/tab-views.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/frontend/electron/src/main/windows-manager/tab-views.ts b/packages/frontend/electron/src/main/windows-manager/tab-views.ts index c0bea63e2..f8597f163 100644 --- a/packages/frontend/electron/src/main/windows-manager/tab-views.ts +++ b/packages/frontend/electron/src/main/windows-manager/tab-views.ts @@ -1068,6 +1068,7 @@ export const showTabContextMenu = async (tabId: string, viewIndex: number) => { WebContentViewsManager.instance.patchTabViewsMeta({ workbenches: tabsToRetain, + activeWorkbenchId: tabId, }); }, },