Pārlūkot izejas kodu

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

Liang Ding 3 gadi atpakaļ
vecāks
revīzija
ac116ed206

+ 1 - 1
kernel/model/assets_watcher.go

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

+ 0 - 4
kernel/model/assets_watcher_darwin.go

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

+ 0 - 3
kernel/model/repository.go

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