mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-25 17:56:09 +01:00
🎨 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:
parent
3f5c0762e8
commit
1e13177aae
16 changed files with 22 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue