mirror of
https://github.com/logseq/logseq.git
synced 2026-05-04 02:46:45 +00:00
Merge remote-tracking branch 'upstream/master' into whiteboards
This commit is contained in:
@@ -163,12 +163,13 @@
|
||||
state/set-state! :sync-graph/init? false)))
|
||||
|
||||
(defmethod handle :graph/switch [[_ graph opts]]
|
||||
(if (or (not (false? (get @outliner-file/*writes-finished? graph)))
|
||||
(:sync-graph/init? @state/state))
|
||||
(graph-switch-on-persisted graph opts)
|
||||
(notification/show!
|
||||
"Please wait seconds until all changes are saved for the current graph."
|
||||
:warning)))
|
||||
(let [opts (if (false? (:persist? opts)) opts (assoc opts :persist? true))]
|
||||
(if (or (not (false? (get @outliner-file/*writes-finished? graph)))
|
||||
(:sync-graph/init? @state/state))
|
||||
(graph-switch-on-persisted graph opts)
|
||||
(notification/show!
|
||||
"Please wait seconds until all changes are saved for the current graph."
|
||||
:warning))))
|
||||
|
||||
(defmethod handle :graph/pick-dest-to-sync [[_ graph]]
|
||||
(state/set-modal!
|
||||
|
||||
Reference in New Issue
Block a user