Skip to content

Commit

Permalink
🎨 集市支持已安装的包单独显示 #5678
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Sep 2, 2022
1 parent 7e8bcc4 commit 22cf11f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kernel/bazaar/icon.go
Expand Up @@ -151,7 +151,7 @@ func InstalledIcons() (ret []*Icon) {
}

func isBuiltInIcon(dirName string) bool {
return "and" == dirName || "material" == dirName
return "ant" == dirName || "material" == dirName
}

func InstallIcon(repoURL, repoHash, installPath string, systemID string) error {
Expand Down
2 changes: 1 addition & 1 deletion kernel/bazaar/package.go
Expand Up @@ -85,7 +85,7 @@ func WidgetJSON(widgetDirName string) (ret map[string]interface{}, err error) {
}

func IconJSON(iconDirName string) (ret map[string]interface{}, err error) {
p := filepath.Join(util.ThemesPath, iconDirName, "icon.json")
p := filepath.Join(util.ThemesPath, "icons", iconDirName, "icon.json")
if !gulu.File.IsExist(p) {
err = os.ErrNotExist
return
Expand Down
1 change: 1 addition & 0 deletions kernel/server/serve.go
Expand Up @@ -67,6 +67,7 @@ func Serve(fastMode bool) {
serveExport(ginServer)
serveWidgets(ginServer)
serveEmojis(ginServer)
serveTemplates(ginServer)
api.ServeAPI(ginServer)

var addr string
Expand Down

0 comments on commit 22cf11f

Please sign in to comment.