mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 00:50:13 +01:00
This commit is contained in:
parent
d3b603ff6b
commit
bf2e2123b7
4 changed files with 9 additions and 9 deletions
|
|
@ -269,12 +269,12 @@ const JSONToCenter = (json: any, layout?: Layout | Wnd | Tab | Model) => {
|
|||
}
|
||||
};
|
||||
|
||||
export const JSONToLayout = () => {
|
||||
export const JSONToLayout = (isStart: boolean) => {
|
||||
JSONToCenter(window.siyuan.config.uiLayout.layout);
|
||||
JSONToDock(window.siyuan.config.uiLayout);
|
||||
const allModels = getAllModels();
|
||||
// 启动时不打开页签,需要移除没有钉住的页签
|
||||
if (window.siyuan.config.fileTree.closeTabsOnStart) {
|
||||
if (window.siyuan.config.fileTree.closeTabsOnStart && isStart) {
|
||||
allModels.editor.forEach(item => {
|
||||
if (item.parent.headElement && !item.parent.headElement.classList.contains("item--pin")) {
|
||||
item.parent.parent.removeTab(item.parent.id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue