浏览代码

fix: disable refresh temporally for NFS

Tienson Qin 2 年之前
父节点
当前提交
75a26303ae
共有 1 个文件被更改,包括 3 次插入1 次删除
  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])}}))