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

This commit is contained in:
Liang Ding 2022-09-01 21:48:50 +08:00
parent af96e48589
commit 0c6a486fa2
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
4 changed files with 21 additions and 17 deletions

View file

@ -96,6 +96,7 @@ func Icons() (icons []*Icon) {
}
func InstalledIcons() (ret []*Icon) {
ret = []*Icon{}
dir, err := os.Open(filepath.Join(util.DataDir, "icons"))
if nil != err {
logging.LogWarnf("open icons folder [%s] failed: %s", util.ThemesPath, err)