fix: local graph should popup encryption dialog when re-index

This commit is contained in:
Andelf
2021-12-03 16:40:52 +08:00
committed by Tienson Qin
parent 1b09821a65
commit fd6f6d033c

View File

@@ -259,9 +259,12 @@
(rename-f "modify" modified))]
(when (or (and (seq diffs) (seq modified-files))
(seq diffs))
(comment "re-index a local graph is handled here")
(repo-handler/load-repo-to-db! repo
{:diffs diffs
:nfs-files modified-files
;; re-ask encryption
:first-clone? re-index?
:refresh? (not re-index?)}))
(when (and (util/electron?) (not re-index?))
(db/transact! repo new-files))))))))