mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🎨 集市已下载包在配置文件不正确的情况下不应该显示更新按钮 https://github.com/siyuan-note/siyuan/issues/5838
This commit is contained in:
1 file changed
+3
-1
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user