🎨 Data repo no longer automatically resets after corrupted https://github.com/siyuan-note/siyuan/issues/10580

This commit is contained in:
Daniel 2024-03-12 16:38:02 +08:00
parent d90dff900e
commit f45cee76ce
No known key found for this signature in database
GPG Key ID: 86211BA83DF03017

View File

@ -1153,6 +1153,13 @@ func bootSyncRepo() (err error) {
if nil != err {
autoSyncErrCount++
planSyncAfter(fixSyncInterval)
msg := fmt.Sprintf(Conf.Language(80), formatRepoErrorMsg(err))
Conf.Sync.Stat = msg
Conf.Save()
util.PushStatusBar(msg)
util.PushErrMsg(msg, 0)
BootSyncSucc = 1
isBootSyncing.Store(false)
return
}