fix: load global config synchronously instead of relying on watcher

This commit also refreshs the shortcuts when config files has been edited.
This commit is contained in:
Tienson Qin
2022-09-06 08:46:47 +08:00
committed by Andelf
parent 7ade955df7
commit 7fa9209e29
6 changed files with 91 additions and 91 deletions

View File

@@ -527,6 +527,9 @@
(defmethod handle :rebuild-slash-commands-list [[_]]
(page-handler/rebuild-slash-commands-list!))
(defmethod handle :shortcut/refresh [[_]]
(st/refresh!))
(defn- refresh-cb []
(page-handler/create-today-journal!)
(st/refresh!)