Use author icon if no package icon known.

part of CURA-8562
This commit is contained in:
Remco Burema 2021-11-23 13:46:33 +01:00
parent 64dba8374a
commit b98e0d1753
No known key found for this signature in database
GPG key ID: 215C49431D43F98C

View file

@ -43,6 +43,8 @@ class PackageModel(QObject):
author_data = package_data.get("author", {})
self._author_name = author_data.get("display_name", catalog.i18nc("@label:property", "Unknown Author"))
self._author_info_url = author_data.get("website", "")
if not self._icon_url or self._icon_url == "":
self._icon_url = author_data.get("icon_url", "")
self._section_title = section_title
# Note that there's a lot more info in the package_data than just these specified here.