mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-10 22:52:34 +01:00
🎨 Brand new marketplace UI https://github.com/siyuan-note/siyuan/issues/8181
This commit is contained in:
parent
99c01fc931
commit
e3fbe9bae5
3 changed files with 20 additions and 6 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue