🎨 Support one-click enable/disable of all downloaded plugins https://github.com/siyuan-note/siyuan/issues/8523
This commit is contained in:
parent
41cd90b771
commit
585e11b329
2 changed files with 5 additions and 5 deletions
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue