Skip to content

Commit

Permalink
🎨 #13164
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Nov 19, 2024
1 parent 734bdac commit 3f43f81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/layout/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,6 @@ export const JSONToCenter = (
child.headElement.setAttribute("data-init-active", "true");
}
(layout as Wnd).addTab(child, false, false, json.activeTime);
(layout as Wnd).showHeading();
} else if (json.instance === "Editor" && json.blockId) {
if (window.siyuan.config.fileTree.openFilesUseCurrentTab) {
(layout as Tab).headElement.classList.add("item--unupdate");
Expand Down Expand Up @@ -506,6 +505,7 @@ export const JSONToLayout = (app: App, isStart: boolean) => {
}
const tab = getInstanceById(item.getAttribute("data-id")) as Tab;
tab.parent.switchTab(item, false, false, true, false);
tab.parent.showHeading();
});
if (latestTabHeaderElement) {
setPanelFocus(latestTabHeaderElement.parentElement.parentElement.parentElement, false);
Expand Down

0 comments on commit 3f43f81

Please sign in to comment.