refactor: sync immediately on saving block or drag&drop

Related to https://github.com/logseq/logseq/issues/470
This commit is contained in:
Tienson Qin
2020-10-30 17:59:53 +08:00
parent 9938c7f277
commit c087143ea4
5 changed files with 27 additions and 18 deletions

View File

@@ -543,7 +543,10 @@
[[file-path new-content]])))
(when (or (seq retract-refs) pre-block?)
(ui-handler/re-render-root!)))
(ui-handler/re-render-root!))
(when (state/git-auto-push?)
(repo-handler/push repo nil)))
:else
nil))))))