mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-23 15:34:06 +01:00
🎨 Partially refresh the interface after data synchronization https://github.com/siyuan-note/siyuan/issues/8098
This commit is contained in:
parent
9bfc7846cd
commit
125700d075
3 changed files with 26 additions and 27 deletions
|
|
@ -260,7 +260,7 @@ func checkSync(boot, exit, byHand bool) bool {
|
|||
}
|
||||
|
||||
// incReindex 增量重建索引。
|
||||
func incReindex(upserts, removes []string) {
|
||||
func incReindex(upserts, removes []string) (upsertRootIDs, removeRootIDs []string) {
|
||||
util.IncBootProgress(3, "Sync reindexing...")
|
||||
msg := fmt.Sprintf(Conf.Language(35))
|
||||
util.PushStatusBar(msg)
|
||||
|
|
@ -274,6 +274,7 @@ func incReindex(upserts, removes []string) {
|
|||
}
|
||||
|
||||
id := strings.TrimSuffix(filepath.Base(removeFile), ".sy")
|
||||
removeRootIDs = append(removeRootIDs, id)
|
||||
block := treenode.GetBlockTree(id)
|
||||
if nil != block {
|
||||
msg = fmt.Sprintf(Conf.Language(39), block.RootID)
|
||||
|
|
@ -316,7 +317,9 @@ func incReindex(upserts, removes []string) {
|
|||
}
|
||||
treenode.IndexBlockTree(tree)
|
||||
sql.UpsertTreeQueue(tree)
|
||||
upsertRootIDs = append(upsertRootIDs, tree.Root.ID)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
func SetCloudSyncDir(name string) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue