🎨 支持列出和切换最近打开的文档 https://github.com/siyuan-note/siyuan/issues/3293

This commit is contained in:
Liang Ding 2022-12-10 22:17:17 +08:00
parent 7b2f1a0efc
commit ae4272eafb
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
2 changed files with 25 additions and 0 deletions

View file

@ -1247,6 +1247,7 @@ func removeDoc(box *Box, p string) (err error) {
treenode.RemoveBlockTreesByPathPrefix(childrenDir)
sql.RemoveTreePathQueue(box.ID, childrenDir)
RemoveRecentDoc(removeIDs)
if "/" != dir {
others, err := os.ReadDir(filepath.Join(util.DataDir, box.ID, dir))