From bd9affef7f0350010abf388de74d2355410cc8ed Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Mon, 29 May 2023 21:18:26 +0800 Subject: [PATCH] :art: Add plugin config items `backends` and `frontends` https://github.com/siyuan-note/siyuan/issues/8386 Improve plugin load performance https://github.com/siyuan-note/siyuan/issues/8397 --- kernel/model/bazzar.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/model/bazzar.go b/kernel/model/bazzar.go index 271766166..fe3ad56e7 100644 --- a/kernel/model/bazzar.go +++ b/kernel/model/bazzar.go @@ -52,7 +52,7 @@ func BazaarPlugins(frontend string) (plugins []*bazaar.Plugin) { func InstalledPlugins(frontend string) (plugins []*bazaar.Plugin) { plugins = bazaar.InstalledPlugins(frontend, true) - petals := getPetals(frontend) + petals := getPetals() for _, plugin := range plugins { petal := getPetalByName(plugin.Name, petals) if nil != petal { @@ -78,7 +78,7 @@ func UninstallBazaarPlugin(pluginName, frontend string) error { return errors.New(fmt.Sprintf(Conf.Language(47), err.Error())) } - petals := getPetals(frontend) + petals := getPetals() var tmp []*Petal for i, petal := range petals { if petal.Name != pluginName {