Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2026-02-01 16:44:15 +08:00
parent 51b362c18f
commit 781144a60d
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
5 changed files with 10 additions and 5 deletions

View file

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