瀏覽代碼

:art: 公测云端同步数据仓库 https://github.com/siyuan-note/siyuan/issues/5337

Liang Ding 3 年之前
父節點
當前提交
ac116ed206
共有 3 個文件被更改,包括 1 次插入8 次删除
  1. 1 1
      kernel/model/assets_watcher.go
  2. 0 4
      kernel/model/assets_watcher_darwin.go
  3. 0 3
      kernel/model/repository.go

+ 1 - 1
kernel/model/assets_watcher.go

@@ -29,7 +29,7 @@ import (
 var assetsWatcher *fsnotify.Watcher
 
 func WatchAssets() {
-	if "android" == util.Container {
+	if "android" == util.Container || "ios" == util.Container {
 		return
 	}
 

+ 0 - 4
kernel/model/assets_watcher_darwin.go

@@ -29,10 +29,6 @@ import (
 var assetsWatcher *watcher.Watcher
 
 func WatchAssets() {
-	if "iOS" == util.Container {
-		return
-	}
-
 	go func() {
 		watchAssets()
 	}()

+ 0 - 3
kernel/model/repository.go

@@ -271,9 +271,6 @@ func syncRepo(boot, exit, byHand bool) {
 		return
 	}
 
-	CloseWatchAssets()
-	defer WatchAssets()
-
 	start := time.Now()
 	cloudInfo := &dejavu.CloudInfo{
 		Dir:       "main",