mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
🎨 为桌面端添加 同步模式 选择 https://github.com/siyuan-note/siyuan/issues/5089
This commit is contained in:
parent
b108480450
commit
2711bc5df8
4 changed files with 16 additions and 0 deletions
|
|
@ -68,6 +68,10 @@ func AutoSync() {
|
|||
func SyncData(boot, exit, byHand bool) {
|
||||
defer util.Recover()
|
||||
|
||||
if !boot && !exit && 2 == Conf.Sync.Mode && !byHand {
|
||||
return
|
||||
}
|
||||
|
||||
if util.IsMutexLocked(&syncLock) {
|
||||
util.LogWarnf("sync has been locked")
|
||||
syncInterval = 30 * time.Second
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue