mirror of
https://github.com/logseq/logseq.git
synced 2026-05-03 10:26:35 +00:00
enhance: display a loading button when importing files from the disk
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
[frontend.handler.route :as route-handler]
|
||||
[cljs-time.coerce :as tc]
|
||||
[frontend.config :as config]
|
||||
[cljs-bean.core :as bean]
|
||||
[frontend.db :as db]
|
||||
[frontend.state :as state]
|
||||
[clojure.string :as string]))
|
||||
@@ -58,11 +57,3 @@
|
||||
:else
|
||||
(log/error :fs/watcher-no-handler {:type type
|
||||
:payload payload})))))
|
||||
|
||||
(defn run-dirs-watcher!
|
||||
[]
|
||||
;; TODO: move "file-watcher" to electron.ipc.channels
|
||||
(js/window.apis.on "file-watcher"
|
||||
(fn [data]
|
||||
(let [{:keys [type payload]} (bean/->clj data)]
|
||||
(handle-changed! type payload)))))
|
||||
|
||||
Reference in New Issue
Block a user