🎨 Don't load plugin when the user hasn't agreed to trust bazaar content yet Fix https://github.com/siyuan-note/siyuan/issues/9426

This commit is contained in:
Daniel 2023-10-13 14:43:43 +08:00
parent 01b19ea2c8
commit daa9ddfd50
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

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