Explorar o código

fix: quick-capture when in code editing

Andelf %!s(int64=3) %!d(string=hai) anos
pai
achega
7dacef69b1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/main/electron/listener.cljs

+ 1 - 1
src/main/electron/listener.cljs

@@ -144,7 +144,7 @@
                                          (string/replace "{time}" time)
                                          (string/replace "{url}" link)
                                          (string/replace "{text}" text))]
-                         (if (state/get-edit-block)
+                         (if (and (state/get-edit-block) (state/editing?))
                            (editor-handler/insert content)
                            (editor-handler/api-insert-new-block! content {:page page
                                                                           :edit-block? false