mirror of
https://github.com/logseq/logseq.git
synced 2026-04-26 07:05:10 +00:00
Install and uninstall plugins from file
Change plugins.edn to key off id as it is unique and all operations work off of it. Note: there are still some bugs with certain plugin installs
This commit is contained in:
@@ -212,7 +212,11 @@
|
||||
(p/then
|
||||
(js/LSPluginCore.register (bean/->js {:key id :url dst}))
|
||||
(fn [] (when theme (js/setTimeout #(select-a-plugin-theme id) 300))))
|
||||
(plugin-config/add-or-update-plugin name (:installed-version payload))
|
||||
(plugin-config/add-or-update-plugin
|
||||
{:id id
|
||||
:name (:name payload)
|
||||
:version (:installed-version payload)
|
||||
:repo (:repo payload)})
|
||||
(notification/show!
|
||||
(str (t :plugin/installed) (t :plugins) ": " name) :success)))))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user