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

This commit is contained in:
Liang Ding 2022-09-02 10:36:56 +08:00
parent 7e8bcc4f62
commit 22cf11f229
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
3 changed files with 3 additions and 2 deletions

View file

@ -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 {

View file

@ -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

View file

@ -67,6 +67,7 @@ func Serve(fastMode bool) {
serveExport(ginServer)
serveWidgets(ginServer)
serveEmojis(ginServer)
serveTemplates(ginServer)
api.ServeAPI(ginServer)
var addr string