mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 00:38:49 +01:00
🎨 支持列出和切换最近打开的文档 https://github.com/siyuan-note/siyuan/issues/3293
This commit is contained in:
parent
ae4272eafb
commit
4cd0e379c5
1 changed files with 4 additions and 1 deletions
|
|
@ -80,7 +80,10 @@ func SetRecentDoc(doc *RecentDoc) (err error) {
|
|||
}
|
||||
}
|
||||
if !update {
|
||||
recentDocs = append(recentDocs, doc)
|
||||
recentDocs = append([]*RecentDoc{doc}, recentDocs...)
|
||||
}
|
||||
if 32 < len(recentDocs) {
|
||||
recentDocs = recentDocs[:64]
|
||||
}
|
||||
|
||||
err = setRecentDocs(recentDocs)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue