mirror of
https://github.com/logseq/logseq.git
synced 2026-06-01 19:01:22 +00:00
chore: easy to use for get-file-sync-state
This commit is contained in:
@@ -1764,8 +1764,11 @@ Similar to re-frame subscriptions"
|
||||
(defn get-file-sync-manager []
|
||||
(:file-sync/sync-manager @state))
|
||||
|
||||
(defn get-file-sync-state [repo]
|
||||
(get-in @state [:file-sync/sync-state repo]))
|
||||
(defn get-file-sync-state
|
||||
([]
|
||||
(get-file-sync-state (get-current-repo)))
|
||||
([repo]
|
||||
(get-in @state [:file-sync/sync-state repo])))
|
||||
|
||||
(defn reset-parsing-state!
|
||||
[]
|
||||
|
||||
Reference in New Issue
Block a user