Skip to content

Commit

Permalink
[bugfix] 修复使用浏览器关闭tab后,双击node重新打开报错
Browse files Browse the repository at this point in the history
  • Loading branch information
GarinZ committed Mar 15, 2023
1 parent c0fe66b commit 182eeb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tree/features/tab-master-tree/fancy-tab-master-tree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ export class FancyTabMasterTree {
// tab remove不会触发tab active事件,需要手动更新
if (windowNode) {
const syncSuccess = await this.syncActiveTab(windowNode.data.windowId);
if (!hasRemove && !syncSuccess) {
if (!hasRemove || !syncSuccess) {
TabNodeOperations.updatePartial(toRemoveNode, { closed: true, active: false });
WindowNodeOperations.updateWindowStatus(windowNode);
}
Expand Down

0 comments on commit 182eeb8

Please sign in to comment.