mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-12 23:46:13 +01:00
This commit is contained in:
parent
e14ca5799b
commit
73505073e6
12 changed files with 42 additions and 59 deletions
|
|
@ -378,7 +378,7 @@ export const JSONToLayout = (app: App, isStart: boolean) => {
|
|||
if (window.siyuan.config.fileTree.closeTabsOnStart && isStart) {
|
||||
getAllTabs().forEach(item => {
|
||||
if (item.headElement && !item.headElement.classList.contains("item--pin")) {
|
||||
item.parent.removeTab(item.id, false, false, false);
|
||||
item.parent.removeTab(item.id, false, false);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
@ -402,7 +402,7 @@ export const JSONToLayout = (app: App, isStart: boolean) => {
|
|||
const tabId = item.getAttribute("data-id");
|
||||
const tab = getInstanceById(tabId) as Tab;
|
||||
if (tab) {
|
||||
tab.parent.removeTab(tabId, false, false, false);
|
||||
tab.parent.removeTab(tabId, false, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -643,10 +643,10 @@ export const newModelByInitData = (app: App, tab: Tab, json: any) => {
|
|||
model = new Editor({
|
||||
app,
|
||||
tab,
|
||||
rootId: json.rootId,
|
||||
blockId: json.blockId,
|
||||
mode: json.mode,
|
||||
action: typeof json.action === "string" ? [json.action] : json.action,
|
||||
scrollAttr: json.scrollAttr,
|
||||
});
|
||||
}
|
||||
return model;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue