mirror of
https://github.com/logseq/logseq.git
synced 2026-05-04 10:56:32 +00:00
Merge remote-tracking branch 'upstream/master' into whiteboards
This commit is contained in:
@@ -147,8 +147,11 @@
|
||||
(graph-switch graph))))
|
||||
|
||||
(defmethod handle :graph/switch [[_ graph opts]]
|
||||
(if @outliner-file/*writes-finished?
|
||||
(graph-switch-on-persisted graph opts)
|
||||
(if (or @outliner-file/*writes-finished?
|
||||
(:graph/remote-binding? @state/state))
|
||||
(do
|
||||
(state/set-state! :graph/remote-binding? false)
|
||||
(graph-switch-on-persisted graph opts))
|
||||
(notification/show!
|
||||
"Please wait seconds until all changes are saved for the current graph."
|
||||
:warning)))
|
||||
|
||||
Reference in New Issue
Block a user