diff --git a/emain/emain-window.ts b/emain/emain-window.ts index ead2bfaff..85e1334e5 100644 --- a/emain/emain-window.ts +++ b/emain/emain-window.ts @@ -274,6 +274,7 @@ export class WaveBrowserWindow extends BaseWindow { console.log("switchWorkspace newWs", newWs); if (this.allTabViews.size) { for (const tab of this.allTabViews.values()) { + this.contentView.removeChildView(tab); tab?.destroy(); } }