From 289e4d38c463d1cd9c6fe18646c82df42f666cbd Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Fri, 2 Jan 2026 12:08:31 +0800 Subject: [PATCH] :art: Improve assets data index updating after data sync on mobile https://github.com/siyuan-note/siyuan/issues/16747 Signed-off-by: Daniel <845765@qq.com> --- kernel/model/assets.go | 4 ++++ kernel/model/assets_watcher.go | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/model/assets.go b/kernel/model/assets.go index 32b89f0e4..fe5d15d5a 100644 --- a/kernel/model/assets.go +++ b/kernel/model/assets.go @@ -1579,3 +1579,7 @@ func copyAssetsToDataAssets(rootPath string) { } } } + +func isFileWatcherAvailable() bool { + return util.ContainerAndroid != util.Container && util.ContainerIOS != util.Container && util.ContainerHarmony != util.Container +} diff --git a/kernel/model/assets_watcher.go b/kernel/model/assets_watcher.go index a7d1b7ed9..174a7b504 100644 --- a/kernel/model/assets_watcher.go +++ b/kernel/model/assets_watcher.go @@ -30,10 +30,6 @@ import ( "github.com/siyuan-note/siyuan/kernel/util" ) -func isFileWatcherAvailable() bool { - return util.ContainerAndroid != util.Container && util.ContainerIOS != util.Container && util.ContainerHarmony != util.Container -} - var assetsWatcher *fsnotify.Watcher func WatchAssets() {