mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
🎨 Error notification pops up only once after auto sync fails https://github.com/siyuan-note/siyuan/issues/8096
This commit is contained in:
parent
44c9fe5321
commit
98e7c29b37
1 changed files with 4 additions and 3 deletions
|
|
@ -578,12 +578,13 @@ func isProviderOnline(byHand bool) (ret bool) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ret = util.IsOnline(checkURL, skipTlsVerify); !ret {
|
if ret = util.IsOnline(checkURL, skipTlsVerify); !ret {
|
||||||
if !byHand {
|
|
||||||
autoSyncErrCount++
|
|
||||||
}
|
|
||||||
if 1 > autoSyncErrCount || byHand {
|
if 1 > autoSyncErrCount || byHand {
|
||||||
util.PushErrMsg(Conf.Language(76)+" (Provider: "+conf.ProviderToStr(Conf.Sync.Provider)+")", 5000)
|
util.PushErrMsg(Conf.Language(76)+" (Provider: "+conf.ProviderToStr(Conf.Sync.Provider)+")", 5000)
|
||||||
}
|
}
|
||||||
|
if !byHand {
|
||||||
|
planSyncAfter(30 * time.Second)
|
||||||
|
autoSyncErrCount++
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue