mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-08 08:14:21 +01:00
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
51b362c18f
commit
781144a60d
5 changed files with 10 additions and 5 deletions
|
|
@ -161,15 +161,16 @@ func InstalledThemes() (ret []*Theme) {
|
|||
continue
|
||||
}
|
||||
|
||||
theme.RepoURL = theme.URL
|
||||
theme.DisallowInstall = disallowInstallBazaarPackage(theme.Package)
|
||||
if bazaarPkg := getBazaarTheme(theme.Name, bazaarThemes); nil != bazaarPkg {
|
||||
theme.DisallowUpdate = disallowInstallBazaarPackage(bazaarPkg.Package)
|
||||
theme.UpdateRequiredMinAppVer = bazaarPkg.MinAppVersion
|
||||
theme.RepoURL = bazaarPkg.RepoURL
|
||||
}
|
||||
|
||||
installPath := filepath.Join(util.ThemesPath, dirName)
|
||||
theme.Installed = true
|
||||
theme.RepoURL = theme.URL
|
||||
theme.PreviewURL = "/appearance/themes/" + dirName + "/preview.png"
|
||||
theme.PreviewURLThumb = "/appearance/themes/" + dirName + "/preview.png"
|
||||
theme.IconURL = "/appearance/themes/" + dirName + "/icon.png"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue