mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 15:40:12 +01:00
🎨 集市支持已安装的包单独显示 https://github.com/siyuan-note/siyuan/issues/5678
This commit is contained in:
parent
1b89ebee28
commit
7e8bcc4f62
2 changed files with 3 additions and 3 deletions
|
|
@ -96,9 +96,9 @@ func Icons() (icons []*Icon) {
|
||||||
|
|
||||||
func InstalledIcons() (ret []*Icon) {
|
func InstalledIcons() (ret []*Icon) {
|
||||||
ret = []*Icon{}
|
ret = []*Icon{}
|
||||||
dir, err := os.Open(filepath.Join(util.DataDir, "icons"))
|
dir, err := os.Open(filepath.Join(util.AppearancePath, "icons"))
|
||||||
if nil != err {
|
if nil != err {
|
||||||
logging.LogWarnf("open icons folder [%s] failed: %s", util.ThemesPath, err)
|
logging.LogWarnf("open icons folder failed: %s", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
iconDirs, err := dir.Readdir(-1)
|
iconDirs, err := dir.Readdir(-1)
|
||||||
|
|
|
||||||
|
|
@ -107,7 +107,7 @@ func IconJSON(iconDirName string) (ret map[string]interface{}, err error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TemplateJSON(templateDirName string) (ret map[string]interface{}, err error) {
|
func TemplateJSON(templateDirName string) (ret map[string]interface{}, err error) {
|
||||||
p := filepath.Join(util.DataDir, templateDirName, "template.json")
|
p := filepath.Join(util.DataDir, "templates", templateDirName, "template.json")
|
||||||
if !gulu.File.IsExist(p) {
|
if !gulu.File.IsExist(p) {
|
||||||
err = os.ErrNotExist
|
err = os.ErrNotExist
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue