mirror of
https://github.com/logseq/logseq.git
synced 2026-05-20 02:42:49 +00:00
fix: redirect to home after clearing cache
This commit is contained in:
@@ -15,7 +15,8 @@
|
||||
[clojure.core.async :as async]
|
||||
[electron.search :as search]
|
||||
[electron.git :as git]
|
||||
[electron.plugin :as plugin]))
|
||||
[electron.plugin :as plugin]
|
||||
[frontend.handler.route :as route-handler]))
|
||||
|
||||
(defmulti handle (fn [_window args] (keyword (first args))))
|
||||
|
||||
@@ -187,7 +188,8 @@
|
||||
(try
|
||||
(fs-extra/removeSync path)
|
||||
(catch js/Error e
|
||||
(js/console.error e)))))))
|
||||
(js/console.error e)))))
|
||||
(route-handler/redirect-to-home!)))
|
||||
|
||||
(defmethod handle :clearCache [_window _]
|
||||
(search/close!)
|
||||
|
||||
Reference in New Issue
Block a user