Browse Source

fix: disable refresh temporally for NFS

Tienson Qin 2 years ago
parent
commit
75a26303ae
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/main/frontend/components/repo.cljs

+ 3 - 1
src/main/frontend/components/repo.cljs

@@ -164,7 +164,9 @@
                        (when (and nfs-repo?
                                   (not= current-repo config/local-repo)
                                   (or (nfs-handler/supported?)
-                                      (mobile-util/native-platform?)))
+                                      (mobile-util/native-platform?))
+                                  ;; Disable refresh temporally for nfs
+                                  (not util/nfs?))
                          {:title (t :sync-from-local-files)
                           :hover-detail (t :sync-from-local-files-detail)
                           :options {:on-click #(state/pub-event! [:graph/ask-for-re-fresh])}}))