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

@ -157,15 +157,16 @@ func InstalledWidgets() (ret []*Widget) {
continue
}
widget.RepoURL = widget.URL
widget.DisallowInstall = disallowInstallBazaarPackage(widget.Package)
if bazaarPkg := getBazaarWidget(widget.Name, bazaarWidgets); nil != bazaarPkg {
widget.DisallowUpdate = disallowInstallBazaarPackage(bazaarPkg.Package)
widget.UpdateRequiredMinAppVer = bazaarPkg.MinAppVersion
widget.RepoURL = bazaarPkg.RepoURL
}
installPath := filepath.Join(util.DataDir, "widgets", dirName)
widget.Installed = true
widget.RepoURL = widget.URL
widget.PreviewURL = "/widgets/" + dirName + "/preview.png"
widget.PreviewURLThumb = "/widgets/" + dirName + "/preview.png"
widget.IconURL = "/widgets/" + dirName + "/icon.png"