Skip to content

Commit

Permalink
🐛 switch tab save layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Dec 19, 2023
1 parent 9efe61a commit 8cb3e0c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/src/layout/Wnd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,7 @@ export class Wnd {
if (initData) {
currentTab.addModel(newModelByInitData(this.app, currentTab, JSON.parse(initData)));
currentTab.headElement.removeAttribute("data-initdata");
saveLayout();
return;
}
}
Expand Down Expand Up @@ -491,6 +492,7 @@ export class Wnd {
resize,
});
}
saveLayout();
}

public addTab(tab: Tab, keepCursor = false, isSaveLayout = true) {
Expand Down

0 comments on commit 8cb3e0c

Please sign in to comment.