mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-25 16:34:06 +01:00
🎨 Show "What's News" after upgrading https://github.com/siyuan-note/siyuan/issues/7902
This commit is contained in:
parent
76e24225ae
commit
5a7e436ba5
12 changed files with 63 additions and 12 deletions
|
|
@ -75,6 +75,7 @@ type AppConf struct {
|
|||
Api *conf.API `json:"api"` // API
|
||||
Repo *conf.Repo `json:"repo"` // 数据仓库
|
||||
OpenHelp bool `json:"openHelp"` // 启动后是否需要打开用户指南
|
||||
ShowChangelog bool `json:"showChangelog"` // 是否显示版本更新日志
|
||||
}
|
||||
|
||||
func InitConf() {
|
||||
|
|
@ -219,6 +220,7 @@ func InitConf() {
|
|||
} else {
|
||||
if 0 < semver.Compare("v"+util.Ver, "v"+Conf.System.KernelVersion) {
|
||||
logging.LogInfof("upgraded from version [%s] to [%s]", Conf.System.KernelVersion, util.Ver)
|
||||
Conf.ShowChangelog = true
|
||||
} else if 0 > semver.Compare("v"+util.Ver, "v"+Conf.System.KernelVersion) {
|
||||
logging.LogInfof("downgraded from version [%s] to [%s]", Conf.System.KernelVersion, util.Ver)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue