mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-18 21:18:07 +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
|
|
@ -236,8 +236,8 @@ func InitConf() {
|
|||
Conf.FileTree.CreateDocAtTop = func() *bool { b := true; return &b }()
|
||||
}
|
||||
|
||||
if 1 > Conf.FileTree.RecentDocsMaxListCount {
|
||||
Conf.FileTree.RecentDocsMaxListCount = 32
|
||||
if conf.MinFileTreeRecentDocsListCount > Conf.FileTree.RecentDocsMaxListCount {
|
||||
Conf.FileTree.RecentDocsMaxListCount = conf.MinFileTreeRecentDocsListCount
|
||||
}
|
||||
if conf.MaxFileTreeRecentDocsListCount < Conf.FileTree.RecentDocsMaxListCount {
|
||||
Conf.FileTree.RecentDocsMaxListCount = conf.MaxFileTreeRecentDocsListCount
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue