Browse Source

chore: add file ack debugging back

Tienson Qin 4 years ago
parent
commit
aca4109862
1 changed files with 3 additions and 4 deletions
  1. 3 4
      src/main/frontend/modules/outliner/pipeline.cljs

+ 3 - 4
src/main/frontend/modules/outliner/pipeline.cljs

@@ -15,10 +15,9 @@
         path (:file/path (:block/file page))
         page-title (or (:block/original-name page)
                        (:block/name page))]
-    ;; (when (util/electron?)
-    ;;   (debug/set-ack-step! path :start-writing)
-    ;;   (debug/wait-for-write-ack! page-title path))
-    )
+    (when (util/electron?)
+      (debug/set-ack-step! path :start-writing)
+      (debug/wait-for-write-ack! page-title path)))
   (file/sync-to-file page))
 
 (defn invoke-hooks