Преглед изворни кода

:art: 集市支持已安装的包单独显示 https://github.com/siyuan-note/siyuan/issues/5678

Liang Ding пре 2 година
родитељ
комит
0d71a61ddb
4 измењених фајлова са 4 додато и 0 уклоњено
  1. 1 0
      kernel/bazaar/icon.go
  2. 1 0
      kernel/bazaar/template.go
  3. 1 0
      kernel/bazaar/theme.go
  4. 1 0
      kernel/bazaar/widget.go

+ 1 - 0
kernel/bazaar/icon.go

@@ -126,6 +126,7 @@ func InstalledIcons() (ret []*Icon) {
 		}
 		}
 
 
 		icon := &Icon{}
 		icon := &Icon{}
+		icon.Installed = true
 		icon.Name = iconConf["name"].(string)
 		icon.Name = iconConf["name"].(string)
 		icon.Author = iconConf["author"].(string)
 		icon.Author = iconConf["author"].(string)
 		icon.URL = iconConf["url"].(string)
 		icon.URL = iconConf["url"].(string)

+ 1 - 0
kernel/bazaar/template.go

@@ -126,6 +126,7 @@ func InstalledTemplates() (ret []*Template) {
 		}
 		}
 
 
 		template := &Template{}
 		template := &Template{}
+		template.Installed = true
 		template.Name = templateConf["name"].(string)
 		template.Name = templateConf["name"].(string)
 		template.Author = templateConf["author"].(string)
 		template.Author = templateConf["author"].(string)
 		template.URL = templateConf["url"].(string)
 		template.URL = templateConf["url"].(string)

+ 1 - 0
kernel/bazaar/theme.go

@@ -128,6 +128,7 @@ func InstalledThemes() (ret []*Theme) {
 		}
 		}
 
 
 		theme := &Theme{}
 		theme := &Theme{}
+		theme.Installed = true
 		theme.Name = themeConf["name"].(string)
 		theme.Name = themeConf["name"].(string)
 		theme.Author = themeConf["author"].(string)
 		theme.Author = themeConf["author"].(string)
 		theme.URL = themeConf["url"].(string)
 		theme.URL = themeConf["url"].(string)

+ 1 - 0
kernel/bazaar/widget.go

@@ -124,6 +124,7 @@ func InstalledWidgets() (ret []*Widget) {
 		}
 		}
 
 
 		widget := &Widget{}
 		widget := &Widget{}
+		widget.Installed = true
 		widget.Name = widgetConf["name"].(string)
 		widget.Name = widgetConf["name"].(string)
 		widget.Author = widgetConf["author"].(string)
 		widget.Author = widgetConf["author"].(string)
 		widget.URL = widgetConf["url"].(string)
 		widget.URL = widgetConf["url"].(string)