🎨 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:
Daniel 2025-12-29 22:36:30 +08:00
parent 0cae6f87dc
commit 96c2093bd8
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
5 changed files with 25 additions and 5 deletions

View file

@ -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()