🎨 集市已下载包在配置文件不正确的情况下不应该显示更新按钮 https://github.com/siyuan-note/siyuan/issues/5838
This commit is contained in:
parent
215c70db23
commit
b4d1d20cf2
1 changed files with 3 additions and 1 deletions
|
@ -134,7 +134,9 @@ func InstalledThemes() (ret []*Theme) {
|
|||
theme.Author = themeConf["author"].(string)
|
||||
theme.URL = themeConf["url"].(string)
|
||||
theme.Version = themeConf["version"].(string)
|
||||
theme.Modes = make([]string, 0, len(themeConf["modes"].([]interface{})))
|
||||
for _, mode := range themeConf["modes"].([]interface{}) {
|
||||
theme.Modes = append(theme.Modes, mode.(string))
|
||||
}
|
||||
theme.RepoURL = theme.URL
|
||||
theme.PreviewURL = "/appearance/themes/" + dirName + "/preview.png"
|
||||
theme.PreviewURLThumb = "/appearance/themes/" + dirName + "/preview.png"
|
||||
|
|
Loading…
Add table
Reference in a new issue