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

@ -159,15 +159,16 @@ func InstalledIcons() (ret []*Icon) {
continue
}
icon.RepoURL = icon.URL
icon.DisallowInstall = disallowInstallBazaarPackage(icon.Package)
if bazaarPkg := getBazaarIcon(icon.Name, bazaarIcons); nil != bazaarPkg {
icon.DisallowUpdate = disallowInstallBazaarPackage(bazaarPkg.Package)
icon.UpdateRequiredMinAppVer = bazaarPkg.MinAppVersion
icon.RepoURL = bazaarPkg.RepoURL
}
installPath := filepath.Join(util.IconsPath, dirName)
icon.Installed = true
icon.RepoURL = icon.URL
icon.PreviewURL = "/appearance/icons/" + dirName + "/preview.png"
icon.PreviewURLThumb = "/appearance/icons/" + dirName + "/preview.png"
icon.IconURL = "/appearance/icons/" + dirName + "/icon.png"