浏览代码

: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

Daniel 2 年之前
父节点
当前提交
bd9affef7f
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      kernel/model/bazzar.go

+ 2 - 2
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 {