Refuse setActiveTab if tab is already set (#1405)

This commit is contained in:
Evan Simkowitz 2024-12-05 23:50:55 -05:00 committed by GitHub
parent 3c69237d9b
commit 0fe05a725a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);
}