Browse Source

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

Daniel 1 year ago
parent
commit
daa9ddfd50
1 changed files with 1 additions and 1 deletions
  1. 1 1
      kernel/model/plugin.go

+ 1 - 1
kernel/model/plugin.go

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