enhance(plugin): persist updates state for the web plugin

This commit is contained in:
charlie
2025-01-02 21:05:19 +08:00
parent 6773542473
commit 0eb7666ce9
2 changed files with 5 additions and 1 deletions

View File

@@ -224,6 +224,10 @@
(.reload pl)
#(do
;;(if theme (select-a-plugin-theme id))
(when (not (util/electron?))
(set! (.-version (.-options pl)) (:version web-pkg))
(set! (.-webPkg (.-options pl)) (bean/->js web-pkg))
(invoke-exported-api :save_installed_web_plugin (.toJSON pl false)))
(notification/show!
(t :plugin/update-plugin name (.-version (.-options pl))) :success)
(state/consume-updates-from-coming-plugin! payload true))))