mirror of
https://github.com/logseq/logseq.git
synced 2026-05-05 11:26:26 +00:00
fix(native-fs): today journal not created automaticaly
Idb file handles should be cleared when unlinking a local directory.
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
:repo/sync-status {}
|
||||
:repo/changed-files nil
|
||||
:nfs/loading-files? nil
|
||||
:nfs/refreshing? nil
|
||||
;; TODO: how to detect the network reliably?
|
||||
:network/online? true
|
||||
:indexeddb/support? true
|
||||
@@ -1002,6 +1003,14 @@
|
||||
[repo file?]
|
||||
(get-in (:db/latest-txs @state) [repo file?]))
|
||||
|
||||
(defn set-nfs-refreshing!
|
||||
[value]
|
||||
(set-state! :nfs/refreshing? value))
|
||||
|
||||
(defn nfs-refreshing?
|
||||
[]
|
||||
(:nfs/refreshing? @state))
|
||||
|
||||
;; TODO: Move those to the uni `state`
|
||||
|
||||
(defonce editor-op (atom nil))
|
||||
|
||||
Reference in New Issue
Block a user