Explorar o código

Merge pull request #3602 from logseq/fix-toggling-config-in-settings

fix(ios): toggling settings persists
Tienson Qin %!s(int64=3) %!d(string=hai) anos
pai
achega
b8cec2bc45
Modificáronse 1 ficheiros con 4 adicións e 3 borrados
  1. 4 3
      src/main/frontend/fs/capacitor_fs.cljs

+ 4 - 3
src/main/frontend/fs/capacitor_fs.cljs

@@ -65,7 +65,6 @@
                                              (fn [{:keys [type]}]
                                                (contains? #{"directory" "NSFileTypeDirectory"} type)))
                                             (mapv :uri))
-
                              files-result
                              (p/all
                               (->> files-with-stats
@@ -89,7 +88,9 @@
                        (p/recur (concat result files-result)
                                 (concat (rest dirs) files-dir)))))
           result (js->clj result :keywordize-keys true)]
-    (map (fn [result] (update result :uri clean-uri)) result)))
+    (if (util/native-ios?)
+      result
+      (map (fn [result] (update result :uri clean-uri)) result))))
 
 (defn- encode-path [orig-repo orig-path]
   (let [orig-repo (config/get-repo-dir orig-repo)
@@ -145,7 +146,7 @@
 
                  (string/starts-with? path (config/get-repo-dir repo))
                  path
-
+                 
                  :else
                  (-> (str dir "/" path)
                      (string/replace "//" "/")))]