mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-19 13:38:06 +01:00
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
7dc84e5447
commit
1c760a84d9
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue