mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 00:50:13 +01:00
🎨 Add plugin config items backends and frontends https://github.com/siyuan-note/siyuan/issues/8386
This commit is contained in:
parent
ec0682358f
commit
02b62eba65
10 changed files with 93 additions and 23 deletions
|
|
@ -38,10 +38,10 @@ type Petal struct {
|
|||
I18n map[string]interface{} `json:"i18n"` // i18n text
|
||||
}
|
||||
|
||||
func SetPetalEnabled(name string, enabled bool) (ret *Petal) {
|
||||
func SetPetalEnabled(name string, enabled bool, frontend string) (ret *Petal) {
|
||||
petals := getPetals()
|
||||
|
||||
plugins := bazaar.InstalledPlugins()
|
||||
plugins := bazaar.InstalledPlugins(frontend)
|
||||
var plugin *bazaar.Plugin
|
||||
for _, p := range plugins {
|
||||
if p.Name == name {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue