🎨 Partially refresh the interface after data synchronization https://github.com/siyuan-note/siyuan/issues/8098

This commit is contained in:
Liang Ding 2023-04-25 15:34:46 +08:00
parent e0e40dbad2
commit bd2e2c78bc
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
4 changed files with 33 additions and 11 deletions

View file

@ -1053,7 +1053,8 @@ func bootSyncRepo() (err error) {
if 0 < len(fetchedFiles) {
go func() {
time.Sleep(7 * time.Second) // 等待一段时间后前端完成界面初始化后再同步
util.WaitForUILoaded() // 等待一段时间后前端完成界面初始化后再同步,因为需要推送消息
syncErr := syncRepo(false, false)
if nil != err {
logging.LogErrorf("boot background sync repo failed: %s", syncErr)