mirror of
https://github.com/logseq/logseq.git
synced 2026-05-04 19:06:21 +00:00
enhance: reload commands when toggle any plugin
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
[frontend.components.svg :as svg]
|
||||
[frontend.handler.notification :as notification]
|
||||
[frontend.handler.plugin :as plugin-handler]
|
||||
[frontend.handler.page :as page-handler]
|
||||
[clojure.string :as string]))
|
||||
|
||||
(rum/defcs installed-themes
|
||||
@@ -248,7 +249,8 @@
|
||||
|
||||
(ui/toggle (not disabled)
|
||||
(fn []
|
||||
(js-invoke js/LSPluginCore (if disabled "enable" "disable") id))
|
||||
(js-invoke js/LSPluginCore (if disabled "enable" "disable") id)
|
||||
(page-handler/init-commands!))
|
||||
true)]])]])))
|
||||
|
||||
(rum/defcs marketplace-plugins
|
||||
@@ -428,4 +430,4 @@
|
||||
(or (not util/nfs?) nfs-granted?))
|
||||
(ui-handler/exec-js-if-exists-&-allowed! t)))
|
||||
[current-repo db-restoring? nfs-granted?])
|
||||
nil)
|
||||
nil)
|
||||
|
||||
Reference in New Issue
Block a user