Ver Fonte

fix: ignored tldr when comparing file changes

Tienson Qin há 3 anos atrás
pai
commit
8b666bc1e2

+ 1 - 1
src/main/frontend/fs/capacitor_fs.cljs

@@ -137,7 +137,7 @@
         (and
          (not= stat :not-found)   ; file on the disk was deleted
          (not contents-matched?)
-         (not (contains? #{"excalidraw" "edn" "css"} ext))
+         (not (contains? #{"excalidraw" "tldr" "edn" "css"} ext))
          (not (string/includes? path "/.recycle/"))
          (zero? pending-writes))
         (p/let [disk-content (encrypt/decrypt disk-content)]

+ 1 - 1
src/main/frontend/fs/nfs.cljs

@@ -173,7 +173,7 @@
                          (not (string/blank? db-content))
                          (not (:skip-compare? opts))
                          (not contents-matched?)
-                         (not (contains? #{"excalidraw" "edn" "css"} ext))
+                         (not (contains? #{"excalidraw" "tldr" "edn" "css"} ext))
                          (not (string/includes? path "/.recycle/"))
                          (zero? pending-writes))
                       (p/let [local-content (encrypt/decrypt local-content)]

+ 1 - 1
src/main/frontend/fs/node.cljs

@@ -59,7 +59,7 @@
         (and
          (not= stat :not-found)         ; file on the disk was deleted
          (not contents-matched?)
-         (not (contains? #{"excalidraw" "edn" "css"} ext))
+         (not (contains? #{"excalidraw" "tldr" "edn" "css"} ext))
          (not (string/includes? path "/.recycle/"))
          (zero? pending-writes))
         (p/let [disk-content (encrypt/decrypt disk-content)]