🎨 Partially refresh the interface after data synchronization https://github.com/siyuan-note/siyuan/issues/8098
This commit is contained in:
parent
125700d075
commit
40d952e12d
2 changed files with 7 additions and 1 deletions
|
@ -1245,6 +1245,13 @@ func processSyncMergeResult(exit, byHand bool, start time.Time, mergeResult *dej
|
|||
elapsed := time.Since(start)
|
||||
go func() {
|
||||
util.WaitForUILoaded()
|
||||
|
||||
if util.ContainerAndroid == util.Container || util.ContainerIOS == util.Container {
|
||||
// 移动端不推送差异详情
|
||||
upsertRootIDs = []string{}
|
||||
removeRootIDs = []string{}
|
||||
}
|
||||
|
||||
util.BroadcastByType("main", "syncMergeResult", 0, "",
|
||||
map[string]interface{}{"upsertRootIDs": upsertRootIDs, "removeRootIDs": removeRootIDs})
|
||||
|
||||
|
|
|
@ -45,7 +45,6 @@ var IsUILoaded = false
|
|||
|
||||
func WaitForUILoaded() {
|
||||
for !IsUILoaded {
|
||||
logging.LogInfof("waiting for UI loading...")
|
||||
time.Sleep(200 * time.Millisecond)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue