From 1c760a84d98d16e5afa8f1c5ecf3c251899675f5 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sun, 28 Dec 2025 22:16:19 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/16688#issuecomment-3694706501 Signed-off-by: Daniel <845765@qq.com> --- kernel/model/plugin.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kernel/model/plugin.go b/kernel/model/plugin.go index 0b4947a55..4436627b3 100644 --- a/kernel/model/plugin.go +++ b/kernel/model/plugin.go @@ -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 }