🎨 The interface is no longer reloaded after data synchronization https://github.com/siyuan-note/siyuan/issues/8098

This commit is contained in:
Liang Ding 2023-04-26 11:10:05 +08:00
parent 87a24d85f1
commit d68a637ad2
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -1059,8 +1059,6 @@ func bootSyncRepo() (err error) {
logging.LogErrorf("boot background sync repo failed: %s", syncErr)
return
}
syncingFiles = sync.Map{}
syncingStorages = false
}()
}
return
@ -1232,6 +1230,9 @@ func processSyncMergeResult(exit, byHand bool, start time.Time, mergeResult *dej
LoadAssetsTexts()
}
syncingFiles = sync.Map{}
syncingStorages = false
cache.ClearDocsIAL() // 同步后文档树文档图标没有更新 https://github.com/siyuan-note/siyuan/issues/4939
if needFullReindex(upsertTrees) { // 改进同步后全量重建索引判断 https://github.com/siyuan-note/siyuan/issues/5764
FullReindex()