♻️ 重命名重建索引函数

This commit is contained in:
Liang Ding 2022-09-16 19:45:46 +08:00
parent e2e929538b
commit 67ff76c605
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
6 changed files with 11 additions and 11 deletions

View file

@ -240,7 +240,7 @@ func CheckoutRepo(id string) (err error) {
return
}
RefreshFileTree()
FullReindex()
if syncEnabled {
func() {
time.Sleep(5 * time.Second)
@ -616,7 +616,7 @@ func syncRepo(boot, exit, byHand bool) (err error) {
cache.ClearDocsIAL() // 同步后文档树文档图标没有更新 https://github.com/siyuan-note/siyuan/issues/4939
if needFullReindex(upsertTrees) { // 改进同步后全量重建索引判断 https://github.com/siyuan-note/siyuan/issues/5764
RefreshFileTree()
FullReindex()
return
}
incReindex(upserts, removes)