This commit is contained in:
Liang Ding 2023-05-05 23:54:24 +08:00
parent 99c01fc931
commit e3fbe9bae5
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
3 changed files with 20 additions and 6 deletions

View file

@ -51,6 +51,15 @@ func BazaarPlugins() (plugins []*bazaar.Plugin) {
func InstalledPlugins() (plugins []*bazaar.Plugin) {
plugins = bazaar.InstalledPlugins()
petals := getPetals()
for _, plugin := range plugins {
petal := getPetalByName(plugin.Name, petals)
if nil != petal {
plugin.Enabled = petal.Enabled
break
}
}
return
}