From 0fe05a725a65ece390b74ca58747c9f303efb04f Mon Sep 17 00:00:00 2001 From: Evan Simkowitz Date: Thu, 5 Dec 2024 23:50:55 -0500 Subject: [PATCH] Refuse setActiveTab if tab is already set (#1405) --- emain/emain-window.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/emain/emain-window.ts b/emain/emain-window.ts index 3e0b2e6c9..5a9d5f81c 100644 --- a/emain/emain-window.ts +++ b/emain/emain-window.ts @@ -292,6 +292,9 @@ export class WaveBrowserWindow extends BaseWindow { async setActiveTab(tabId: string, setInBackend: boolean) { console.log("setActiveTab", tabId, this.waveWindowId, this.workspaceId, setInBackend); + if (this.activeTabView?.waveTabId == tabId) { + return; + } if (setInBackend) { await WorkspaceService.SetActiveTab(this.workspaceId, tabId); }