Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: 集市已下载包在配置文件不正确的情况下不应该显示更新按钮 https://github.com/siyuan-note/siyuan/issues/5838

Liang Dingb4d1d20cf2c5
diff --git a/kernel/bazaar/theme.go b/kernel/bazaar/theme.go
index 25329ed0d7..3fe7822517 100644
--- a/kernel/bazaar/theme.go
+++ b/kernel/bazaar/theme.go
@@ -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"