mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-02 18:39:05 +01: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
@ -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 New Issue
Block a user