mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-17 09:30:48 +08:00
🎨 Data repo no longer automatically resets after corrupted https://github.com/siyuan-note/siyuan/issues/10580
This commit is contained in:
parent
d90dff900e
commit
f45cee76ce
@ -1153,6 +1153,13 @@ func bootSyncRepo() (err error) {
|
|||||||
if nil != err {
|
if nil != err {
|
||||||
autoSyncErrCount++
|
autoSyncErrCount++
|
||||||
planSyncAfter(fixSyncInterval)
|
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)
|
isBootSyncing.Store(false)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user