🎨 Bazaar resource directories support symlink https://github.com/siyuan-note/siyuan/pull/8263
This commit is contained in:
parent
9455086820
commit
8b6abec8e9
1 changed files with 1 additions and 1 deletions
|
@ -249,7 +249,7 @@ func UninstallBazaarTheme(themeName string) error {
|
|||
func BazaarTemplates() (templates []*bazaar.Template) {
|
||||
templates = bazaar.Templates()
|
||||
for _, template := range templates {
|
||||
template.Installed = gulu.File.IsExist(filepath.Join(util.DataDir, "templates", template.Name))
|
||||
template.Installed = util.IsPathRegularDirOrSymlinkDir(filepath.Join(util.DataDir, "templates", template.Name))
|
||||
if template.Installed {
|
||||
if themeConf, err := bazaar.TemplateJSON(template.Name); nil == err && nil != themeConf {
|
||||
if template.Version != themeConf.Version {
|
||||
|
|
Loading…
Add table
Reference in a new issue