mirror of
https://github.com/logseq/logseq.git
synced 2026-05-03 18:36:43 +00:00
fix: watch dir after a new graph has been created
This commit is contained in:
@@ -108,6 +108,8 @@
|
||||
(if empty-graph?
|
||||
(route-handler/redirect! {:to :import :query-params {:from "picker"}})
|
||||
(route-handler/redirect-to-home!)))
|
||||
(when-let [dir-name (config/get-repo-dir repo)]
|
||||
(fs/watch-dir! dir-name))
|
||||
(repo-handler/refresh-repos!)
|
||||
(file-sync-restart!))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user