mirror of
https://github.com/wavetermdev/waveterm
synced 2026-05-23 16:58:30 +00:00
Remove child views before switching workspaces (#1371)
This was causing a crash on Windows because we were destroying a TabView that was still parented to the window. Not sure why I couldn't repro this on Mac...
This commit is contained in:
parent
da48ab5e62
commit
f606a74339
1 changed files with 1 additions and 0 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue