mirror of
https://github.com/wavetermdev/waveterm
synced 2026-05-24 01:08:27 +00:00
Refuse setActiveTab if tab is already set (#1405)
This commit is contained in:
parent
3c69237d9b
commit
0fe05a725a
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue