fix(native-fs): today journal not created automaticaly

Idb file handles should be cleared when unlinking a local directory.
This commit is contained in:
Tienson Qin
2020-12-11 01:59:30 +08:00
parent 914031649e
commit 690a090c87
12 changed files with 189 additions and 140 deletions

View File

@@ -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))