Tienson Qin 3 лет назад
Родитель
Сommit
658d1d315a
2 измененных файлов с 1 добавлено и 2 удалено
  1. 1 1
      src/electron/electron/handler.cljs
  2. 0 1
      src/main/frontend/fs/watcher_handler.cljs

+ 1 - 1
src/electron/electron/handler.cljs

@@ -391,7 +391,7 @@
         windows (win/get-graph-all-windows dir)]
     (> (count windows) 1)))
 
-(defmethod handle :addDirWatcher [^js window [_ dir]]
+(defmethod handle :addDirWatcher [^js _window [_ dir]]
   ;; receive dir path (not repo / graph) from frontend
   ;; Windows on same dir share the same watcher
   ;; Only close file watcher when:

+ 0 - 1
src/main/frontend/fs/watcher_handler.cljs

@@ -8,7 +8,6 @@
             [frontend.handler.page :as page-handler]
             [frontend.handler.repo :as repo-handler]
             [frontend.handler.ui :as ui-handler]
-            [frontend.handler.notification :as notification]
             [logseq.graph-parser.util :as gp-util]
             [frontend.util.text :as text-util]
             [lambdaisland.glogi :as log]