mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 16:40:13 +01:00
🎨 为桌面端添加 同步模式 选择 https://github.com/siyuan-note/siyuan/issues/5089
This commit is contained in:
parent
9635154e45
commit
b108480450
8 changed files with 61 additions and 0 deletions
|
|
@ -513,6 +513,15 @@ func SetSyncEnable(b bool) (err error) {
|
|||
return
|
||||
}
|
||||
|
||||
func SetSyncMode(mode int) (err error) {
|
||||
syncLock.Lock()
|
||||
defer syncLock.Unlock()
|
||||
|
||||
Conf.Sync.Mode = mode
|
||||
Conf.Save()
|
||||
return
|
||||
}
|
||||
|
||||
var syncLock = sync.Mutex{}
|
||||
|
||||
func syncDirUpsertWorkspaceData(downloadedFiles []string) (err error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue