mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 18:10:12 +01:00
This commit is contained in:
parent
35cf6d1b49
commit
ca8d6d0dc3
8 changed files with 20 additions and 2 deletions
|
|
@ -425,7 +425,7 @@ export class Wnd {
|
|||
// 移除 centerLayout 中的 empty
|
||||
if (this.parent.type === "center" && this.children.length === 2 && !this.children[0].headElement) {
|
||||
this.removeTab(this.children[0].id);
|
||||
} else if (this.children.length > 5) { // TODO: 需从后台设置中获取
|
||||
} else if (this.children.length > window.siyuan.config.fileTree.maxOpenTabCount) {
|
||||
let removeId: string;
|
||||
let openTime: string;
|
||||
this.children.forEach((item, index) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue