mirror of
https://github.com/logseq/logseq.git
synced 2026-05-04 10:56:32 +00:00
fix: disable auto-save when the editor is in composition
This commit is contained in:
@@ -71,6 +71,7 @@
|
||||
:editor/show-input nil
|
||||
:editor/last-saved-cursor nil
|
||||
:editor/editing? nil
|
||||
:editor/in-composition? false
|
||||
:editor/pos 0
|
||||
:editor/content {}
|
||||
:editor/block nil
|
||||
@@ -981,6 +982,14 @@
|
||||
[value]
|
||||
(set-state! :graph/syncing? value))
|
||||
|
||||
(defn set-editor-in-composition!
|
||||
[value]
|
||||
(set-state! :editor/in-composition? value))
|
||||
|
||||
(defn editor-in-composition?
|
||||
[]
|
||||
(:editor/in-composition? @state))
|
||||
|
||||
(defn set-loading-files!
|
||||
[value]
|
||||
(set-state! :repo/loading-files? value))
|
||||
|
||||
Reference in New Issue
Block a user