mirror of
https://github.com/logseq/logseq.git
synced 2026-05-02 09:56:31 +00:00
fix: notify graph dir is gone when starting or running the apps
Also, disabled both re-index and refresh when logseq detects that a graph's dir doesn't exists anymore.
This commit is contained in:
@@ -327,9 +327,11 @@
|
||||
_ (ok-handler)]
|
||||
(state/set-nfs-refreshing! false))))
|
||||
|
||||
;; TODO: move to frontend.handler.repo
|
||||
(defn refresh!
|
||||
[repo ok-handler]
|
||||
(when repo
|
||||
(when (and repo
|
||||
(not (state/unlinked-dir? (config/get-repo-dir repo))))
|
||||
(state/set-nfs-refreshing! true)
|
||||
(p/let [_ (reload-dir! repo)
|
||||
_ (ok-handler)]
|
||||
|
||||
Reference in New Issue
Block a user