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

This commit is contained in:
Liang Ding 2022-12-10 22:50:02 +08:00
parent 72419c9075
commit bcf3422080
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
2 changed files with 4 additions and 3 deletions

View file

@ -350,7 +350,8 @@ func (box *Box) Unindex() {
sql.RemoveBoxHash(tx, box.ID)
sql.DeleteByBoxTx(tx, box.ID)
sql.CommitTx(tx)
treenode.RemoveBlockTreesByBoxID(box.ID)
ids := treenode.RemoveBlockTreesByBoxID(box.ID)
RemoveRecentDoc(ids)
}
func (box *Box) ListFiles(path string) (ret []*FileInfo) {