mirror of
https://github.com/logseq/logseq.git
synced 2026-05-05 03:16:37 +00:00
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:
@@ -179,12 +179,9 @@
|
||||
(restore-graph-from-text! repo stored)))
|
||||
|
||||
(defn restore!
|
||||
[{:keys [repos]} _old-db-schema restore-config-handler]
|
||||
(let [repo (or (state/get-current-repo) (:url (first repos)))]
|
||||
(when repo
|
||||
(p/let [_ (restore-graph! repo)]
|
||||
(restore-config-handler repo)
|
||||
(listen-and-persist! repo)))))
|
||||
[repo]
|
||||
(p/let [_ (restore-graph! repo)]
|
||||
(listen-and-persist! repo)))
|
||||
|
||||
(defn run-batch-txs!
|
||||
[]
|
||||
|
||||
Reference in New Issue
Block a user