mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
🎨 Show changelog after upgrading https://github.com/siyuan-note/siyuan/issues/7902
This commit is contained in:
parent
d81c56f026
commit
e107130a48
1 changed files with 5 additions and 8 deletions
|
|
@ -45,16 +45,13 @@ func getChangelog(c *gin.Context) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
//if !model.Conf.ShowChangelog {
|
if !model.Conf.ShowChangelog {
|
||||||
// return
|
return
|
||||||
//}
|
}
|
||||||
|
|
||||||
ver := util.Ver
|
changelogPath := filepath.Join(changelogsDir, "v"+util.Ver+"_"+model.Conf.Lang+".md")
|
||||||
ver = "2.8.4"
|
|
||||||
|
|
||||||
changelogPath := filepath.Join(changelogsDir, "v"+ver+"_"+model.Conf.Lang+".md")
|
|
||||||
if !gulu.File.IsExist(changelogPath) {
|
if !gulu.File.IsExist(changelogPath) {
|
||||||
changelogPath = filepath.Join(changelogsDir, "v"+ver+".md")
|
changelogPath = filepath.Join(changelogsDir, "v"+util.Ver+".md")
|
||||||
if !gulu.File.IsExist(changelogPath) {
|
if !gulu.File.IsExist(changelogPath) {
|
||||||
logging.LogErrorf("changelog not found: %s", changelogPath)
|
logging.LogErrorf("changelog not found: %s", changelogPath)
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue