mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-18 07:25:58 +08:00
Use author icon if no package icon known.
part of CURA-8562
This commit is contained in:
parent
64dba8374a
commit
b98e0d1753
@ -43,6 +43,8 @@ class PackageModel(QObject):
|
|||||||
author_data = package_data.get("author", {})
|
author_data = package_data.get("author", {})
|
||||||
self._author_name = author_data.get("display_name", catalog.i18nc("@label:property", "Unknown Author"))
|
self._author_name = author_data.get("display_name", catalog.i18nc("@label:property", "Unknown Author"))
|
||||||
self._author_info_url = author_data.get("website", "")
|
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
|
self._section_title = section_title
|
||||||
# Note that there's a lot more info in the package_data than just these specified here.
|
# Note that there's a lot more info in the package_data than just these specified here.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user