mirror of
https://github.com/logseq/logseq.git
synced 2026-05-01 17:36:33 +00:00
enhance: remove sqlite usage from Electron
Use periodic db export instead. Manual saving db to the disk can be triggered by `mod+s`.
This commit is contained in:
@@ -423,6 +423,11 @@
|
||||
:inactive (not config/db-graph-enabled?)
|
||||
:binding false}
|
||||
|
||||
:graph/db-save {:fn #(state/pub-event! [:graph/save-db-to-disk])
|
||||
;; TODO: Remove `(not config/db-graph-enabled?)` check once feature is released
|
||||
:inactive (or (not config/db-graph-enabled?) (not (util/electron?)))
|
||||
:binding "mod+s"}
|
||||
|
||||
:graph/re-index {:fn (fn []
|
||||
(p/let [multiple-windows? (ipc/ipc "graphHasMultipleWindows" (state/get-current-repo))]
|
||||
(state/pub-event! [:graph/ask-for-re-index (atom multiple-windows?) nil])))
|
||||
@@ -671,6 +676,7 @@
|
||||
:graph/remove
|
||||
:graph/add
|
||||
:graph/db-add
|
||||
:graph/db-save
|
||||
:graph/re-index
|
||||
:editor/cycle-todo
|
||||
:editor/up
|
||||
|
||||
Reference in New Issue
Block a user