From 0d71a61ddbcdaba0b642cc3a72ac4783c1fef07d Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Thu, 1 Sep 2022 22:32:43 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E9=9B=86=E5=B8=82=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E5=B7=B2=E5=AE=89=E8=A3=85=E7=9A=84=E5=8C=85=E5=8D=95=E7=8B=AC?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=20https://github.com/siyuan-note/siyuan/issu?= =?UTF-8?q?es/5678?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/bazaar/icon.go | 1 + kernel/bazaar/template.go | 1 + kernel/bazaar/theme.go | 1 + kernel/bazaar/widget.go | 1 + 4 files changed, 4 insertions(+) diff --git a/kernel/bazaar/icon.go b/kernel/bazaar/icon.go index 27aa7d34e..63aa12f74 100644 --- a/kernel/bazaar/icon.go +++ b/kernel/bazaar/icon.go @@ -126,6 +126,7 @@ func InstalledIcons() (ret []*Icon) { } icon := &Icon{} + icon.Installed = true icon.Name = iconConf["name"].(string) icon.Author = iconConf["author"].(string) icon.URL = iconConf["url"].(string) diff --git a/kernel/bazaar/template.go b/kernel/bazaar/template.go index 3dd412512..4cb5e488a 100644 --- a/kernel/bazaar/template.go +++ b/kernel/bazaar/template.go @@ -126,6 +126,7 @@ func InstalledTemplates() (ret []*Template) { } template := &Template{} + template.Installed = true template.Name = templateConf["name"].(string) template.Author = templateConf["author"].(string) template.URL = templateConf["url"].(string) diff --git a/kernel/bazaar/theme.go b/kernel/bazaar/theme.go index 4098561cc..c0c4cb2b3 100644 --- a/kernel/bazaar/theme.go +++ b/kernel/bazaar/theme.go @@ -128,6 +128,7 @@ func InstalledThemes() (ret []*Theme) { } theme := &Theme{} + theme.Installed = true theme.Name = themeConf["name"].(string) theme.Author = themeConf["author"].(string) theme.URL = themeConf["url"].(string) diff --git a/kernel/bazaar/widget.go b/kernel/bazaar/widget.go index 796366eb8..fbbd14447 100644 --- a/kernel/bazaar/widget.go +++ b/kernel/bazaar/widget.go @@ -124,6 +124,7 @@ func InstalledWidgets() (ret []*Widget) { } widget := &Widget{} + widget.Installed = true widget.Name = widgetConf["name"].(string) widget.Author = widgetConf["author"].(string) widget.URL = widgetConf["url"].(string)