🎨 Support one-click enable/disable of all downloaded plugins https://github.com/siyuan-note/siyuan/issues/8523

This commit is contained in:
Daniel 2023-06-23 22:53:34 +08:00
parent 41cd90b771
commit 585e11b329
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 5 additions and 5 deletions

View file

@ -17,13 +17,13 @@
package conf
type Bazaar struct {
Trust bool `json:"trust"`
Petal bool `json:"petal"`
Trust bool `json:"trust"`
PetalDisabled bool `json:"petalDisabled"`
}
func NewBazaar() *Bazaar {
return &Bazaar{
Trust: false,
Petal: true,
Trust: false,
PetalDisabled: false,
}
}

View file

@ -72,7 +72,7 @@ func SetPetalEnabled(name string, enabled bool, frontend string) (ret *Petal, er
func LoadPetals(frontend string) (ret []*Petal) {
ret = []*Petal{}
if !Conf.Bazaar.Petal {
if Conf.Bazaar.PetalDisabled {
return
}