mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 01:50:12 +01:00
🎨 Refresh doc tree after data sync https://github.com/siyuan-note/siyuan/issues/12860
This commit is contained in:
parent
eef7e47ce1
commit
f7f48b23f6
1 changed files with 14 additions and 13 deletions
|
|
@ -1550,6 +1550,7 @@ func processSyncMergeResult(exit, byHand bool, mergeResult *dejavu.MergeResult,
|
||||||
if 0 < len(upsertRootIDs) || 0 < len(removeRootIDs) {
|
if 0 < len(upsertRootIDs) || 0 < len(removeRootIDs) {
|
||||||
util.BroadcastByType("main", "syncMergeResult", 0, "",
|
util.BroadcastByType("main", "syncMergeResult", 0, "",
|
||||||
map[string]interface{}{"upsertRootIDs": upsertRootIDs, "removeRootIDs": removeRootIDs})
|
map[string]interface{}{"upsertRootIDs": upsertRootIDs, "removeRootIDs": removeRootIDs})
|
||||||
|
util.PushReloadFiletree()
|
||||||
}
|
}
|
||||||
|
|
||||||
time.Sleep(2 * time.Second)
|
time.Sleep(2 * time.Second)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue