mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-15 13:18:51 +01:00
🎨 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>
This commit is contained in:
parent
b0dce4510d
commit
289e4d38c4
2 changed files with 4 additions and 4 deletions
|
|
@ -1579,3 +1579,7 @@ func copyAssetsToDataAssets(rootPath string) {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
func isFileWatcherAvailable() bool {
|
||||
return util.ContainerAndroid != util.Container && util.ContainerIOS != util.Container && util.ContainerHarmony != util.Container
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue