mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-09 00:34:20 +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
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue