🎨 Custom Emoji folders no longer require manual refresh when they change https://github.com/siyuan-note/siyuan/issues/11749

This commit is contained in:
Daniel 2024-06-18 19:31:04 +08:00
parent aa7a745eb2
commit ed85d29e51
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 4 additions and 27 deletions

View file

@ -52,15 +52,7 @@ func watchEmojis() {
}
//logging.LogInfof("emojis changed: %s", event)
if watcher.Write == event.Op {
IncSync()
}
if watcher.Remove == event.Op {
util.PushReloadEmojiConf()
} else {
util.PushReloadEmojiConf()
}
util.PushReloadEmojiConf()
case err, ok := <-emojisWatcher.Error:
if !ok {
return