mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🎨 Partially refresh the interface after data synchronization https://github.com/siyuan-note/siyuan/issues/8098
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user