🎨 改进重建索引

This commit is contained in:
Liang Ding 2023-02-06 21:15:46 +08:00
parent a70fc3ec33
commit 129d64864b
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -506,7 +506,6 @@ func ReloadUI() {
func FullReindex() { func FullReindex() {
task.PrependTask(task.DatabaseIndexFull, fullReindex) task.PrependTask(task.DatabaseIndexFull, fullReindex)
task.AppendTask(task.DatabaseIndexRef, IndexRefs)
} }
func fullReindex() { func fullReindex() {
@ -527,6 +526,7 @@ func fullReindex() {
sql.EnableCache() sql.EnableCache()
treenode.SaveBlockTree(true) treenode.SaveBlockTree(true)
LoadFlashcards() LoadFlashcards()
IndexRefs()
debug.FreeOSMemory() debug.FreeOSMemory()
util.ReloadUI() util.ReloadUI()
} }