mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🎨 为同步状态添加对应的图标 https://github.com/siyuan-note/siyuan/issues/7041
This commit is contained in:
@@ -150,7 +150,11 @@ func syncData(boot, exit, byHand bool) {
|
||||
msg := fmt.Sprintf(Conf.Language(82), synced)
|
||||
Conf.Sync.Stat = msg
|
||||
Conf.Save()
|
||||
util.BroadcastByType("main", "syncing", 1, msg, nil)
|
||||
code := 1
|
||||
if nil != err {
|
||||
code = 2
|
||||
}
|
||||
util.BroadcastByType("main", "syncing", code, msg, nil)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user