mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-03 03:10:16 +01:00
🎨 Supports configuring the maximum number of Recent documents to be listed https://github.com/siyuan-note/siyuan/issues/16720
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
0cae6f87dc
commit
96c2093bd8
5 changed files with 25 additions and 5 deletions
|
|
@ -423,6 +423,10 @@ func setFiletree(c *gin.Context) {
|
|||
if 32 < fileTree.MaxOpenTabCount {
|
||||
fileTree.MaxOpenTabCount = 32
|
||||
}
|
||||
if conf.MaxFileTreeRecentDocsListCount < fileTree.RecentDocsMaxListCount {
|
||||
fileTree.RecentDocsMaxListCount = conf.MaxFileTreeRecentDocsListCount
|
||||
}
|
||||
|
||||
model.Conf.FileTree = fileTree
|
||||
model.Conf.Save()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue