mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-23 08:46:09 +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
1c7c45896a
commit
42b7929786
5 changed files with 12 additions and 5 deletions
|
|
@ -423,6 +423,10 @@ func setFiletree(c *gin.Context) {
|
|||
if 32 < fileTree.MaxOpenTabCount {
|
||||
fileTree.MaxOpenTabCount = 32
|
||||
}
|
||||
|
||||
if conf.MinFileTreeRecentDocsListCount > fileTree.RecentDocsMaxListCount {
|
||||
fileTree.RecentDocsMaxListCount = conf.MinFileTreeRecentDocsListCount
|
||||
}
|
||||
if conf.MaxFileTreeRecentDocsListCount < fileTree.RecentDocsMaxListCount {
|
||||
fileTree.RecentDocsMaxListCount = conf.MaxFileTreeRecentDocsListCount
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue