Merge remote-tracking branch 'upstream/master' into whiteboards

This commit is contained in:
Peng Xiao
2022-09-07 00:19:56 +08:00
5 changed files with 43 additions and 38 deletions

View File

@@ -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)))