mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-10 14:42:33 +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
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue