fix: pop up a saving confirmation dialog when losing focus

This commit is contained in:
Tienson Qin
2022-01-12 11:52:28 +08:00
parent 08ba5c7ff8
commit 0f08340799
2 changed files with 3 additions and 4 deletions

View File

@@ -183,8 +183,7 @@
(file-handler/alter-file (state/get-current-repo)
path
(str (string/trim value) "\n")
{:re-render-root? true})
(notification/show! "Saved file!" :success)))
{:re-render-root? true})))
:else
nil))))