(tabId: string, force: boolean)
| 626 | } |
| 627 | |
| 628 | removeTabView(tabId: string, force: boolean) { |
| 629 | if (!force && this.activeTabView?.waveTabId == tabId) { |
| 630 | console.log("cannot remove active tab", tabId, this.waveWindowId); |
| 631 | return; |
| 632 | } |
| 633 | const tabView = this.allLoadedTabViews.get(tabId); |
| 634 | if (tabView == null) { |
| 635 | console.log("removeTabView -- tabView not found", tabId, this.waveWindowId); |
| 636 | // the tab was never loaded, so just return |
| 637 | return; |
| 638 | } |
| 639 | this.contentView.removeChildView(tabView); |
| 640 | this.allLoadedTabViews.delete(tabId); |
| 641 | tabView.destroy(); |
| 642 | } |
| 643 | |
| 644 | destroy() { |
| 645 | console.log("destroy win", this.waveWindowId); |
no test coverage detected