mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 16:40:13 +01:00
🐛 switch tab save layout
This commit is contained in:
parent
9efe61af7c
commit
8cb3e0c976
1 changed files with 2 additions and 0 deletions
|
|
@ -431,6 +431,7 @@ export class Wnd {
|
||||||
if (initData) {
|
if (initData) {
|
||||||
currentTab.addModel(newModelByInitData(this.app, currentTab, JSON.parse(initData)));
|
currentTab.addModel(newModelByInitData(this.app, currentTab, JSON.parse(initData)));
|
||||||
currentTab.headElement.removeAttribute("data-initdata");
|
currentTab.headElement.removeAttribute("data-initdata");
|
||||||
|
saveLayout();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -491,6 +492,7 @@ export class Wnd {
|
||||||
resize,
|
resize,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
saveLayout();
|
||||||
}
|
}
|
||||||
|
|
||||||
public addTab(tab: Tab, keepCursor = false, isSaveLayout = true) {
|
public addTab(tab: Tab, keepCursor = false, isSaveLayout = true) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue