Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2025-12-28 22:16:19 +08:00
parent 7dc84e5447
commit 1c760a84d9
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -111,6 +111,10 @@ func LoadPetals(frontend string, isPublish bool) (ret []*Petal) {
for _, petal := range petals {
_, petal.DisplayName, petal.Incompatible, petal.DisabledInPublish, petal.DisallowInstall = bazaar.ParseInstalledPlugin(petal.Name, frontend)
if !petal.Enabled || petal.Incompatible || (isPublish && petal.DisabledInPublish) || petal.DisallowInstall {
if petal.DisallowInstall {
SetPetalEnabled(petal.Name, false, frontend)
logging.LogInfof("plugin [%s] disallowed install, auto disabled", petal.Name)
}
continue
}