🎨 Improve minimum version requirements for marketplace packages https://github.com/siyuan-note/siyuan/issues/16688

Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2025-12-27 12:49:37 +08:00
parent 3f5c0762e8
commit 1e13177aae
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
16 changed files with 22 additions and 1 deletions

View file

@ -71,6 +71,13 @@ func SetPetalEnabled(name string, enabled bool, frontend string) (ret *Petal, er
return
}
if disallowInstall {
msg := "requires upgrading SiYuan to v${x} or later to use"
err = fmt.Errorf(msg)
logging.LogInfof(msg)
return
}
savePetals(petals)
loadCode(ret)
return