mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-20 22:14:06 +01:00
♻️
This commit is contained in:
parent
2ee01c3f31
commit
69a599af15
1 changed files with 3 additions and 3 deletions
|
|
@ -320,7 +320,7 @@ export class Dock {
|
|||
this.layout.element.querySelector(".layout__tab--active")?.classList.remove("layout__tab--active");
|
||||
}
|
||||
|
||||
public toggleModel(type: string, show = false, close = false, hide = false, saveLayout = true) {
|
||||
public toggleModel(type: string, show = false, close = false, hide = false, isSaveLayout = true) {
|
||||
if (!type) {
|
||||
return;
|
||||
}
|
||||
|
|
@ -366,7 +366,7 @@ export class Dock {
|
|||
document.getElementById("drag")?.classList.remove("fn__hidden");
|
||||
}
|
||||
// 关闭 dock 后设置光标,初始化的时候不能设置,否则关闭文档树且多页签时会请求两次 getDoc
|
||||
if (saveLayout && !document.querySelector(".layout__center .layout__wnd--active")) {
|
||||
if (isSaveLayout && !document.querySelector(".layout__center .layout__wnd--active")) {
|
||||
const currentElement = document.querySelector(".layout__center ul.layout-tab-bar .item--focus");
|
||||
if (currentElement) {
|
||||
getAllTabs().find(item => {
|
||||
|
|
@ -578,7 +578,7 @@ export class Dock {
|
|||
anotherWnd.element.style.height = "";
|
||||
anotherWnd.element.style.width = "";
|
||||
}
|
||||
resizeTabs(saveLayout);
|
||||
resizeTabs(isSaveLayout);
|
||||
this.showDock();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue