🎨 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
This commit is contained in:
parent
f5a9c2d316
commit
bd9affef7f
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue