feat: multiple windows support

This commit is contained in:
Tienson Qin
2021-12-21 13:58:47 +08:00
parent d3e6f16d76
commit 6fb7121397
18 changed files with 292 additions and 165 deletions

View File

@@ -285,9 +285,7 @@
(when re-index?
(state/set-graph-syncing? true))
(->
(p/let [handle (-> (idb/get-item handle-path)
(p/catch (fn [_error]
nil)))]
(p/let [handle (when-not electron? (idb/get-item handle-path))]
(when (or handle electron? mobile-native?) ; electron doesn't store the file handle
(p/let [_ (when handle (nfs/verify-permission repo handle true))
files-result (fs/get-files (if nfs? handle