mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 08:30:12 +01:00
🎨 支持设置页签打开最大数量 https://github.com/siyuan-note/siyuan/issues/2098
This commit is contained in:
parent
97a2c1c8db
commit
6abc66dd2b
1 changed files with 6 additions and 0 deletions
|
|
@ -166,6 +166,12 @@ func setFiletree(c *gin.Context) {
|
|||
}
|
||||
}
|
||||
|
||||
if 1 > fileTree.MaxOpenTabCount {
|
||||
fileTree.MaxOpenTabCount = 12
|
||||
}
|
||||
if 32 < fileTree.MaxOpenTabCount {
|
||||
fileTree.MaxOpenTabCount = 32
|
||||
}
|
||||
model.Conf.FileTree = fileTree
|
||||
model.Conf.Save()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue