mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 02:20:13 +01:00
🎨 Custom Emoji folders no longer require manual refresh when they change https://github.com/siyuan-note/siyuan/issues/11749
This commit is contained in:
parent
aa7a745eb2
commit
ed85d29e51
2 changed files with 4 additions and 27 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue