mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Let readmore point towards marketplace URL
CURA-8762
This commit is contained in:
parent
7926a2bbdc
commit
d29b00b4be
2 changed files with 6 additions and 1 deletions
|
@ -39,6 +39,7 @@ class PackageModel(QObject):
|
|||
self._package_type = package_data.get("package_type", "")
|
||||
self._is_bundled = package_data.get("is_bundled", False)
|
||||
self._icon_url = package_data.get("icon_url", "")
|
||||
self._marketplace_url = package_data.get("marketplace_url", "")
|
||||
self._display_name = package_data.get("display_name", catalog.i18nc("@label:property", "Unknown Package"))
|
||||
tags = package_data.get("tags", [])
|
||||
self._is_checked_by_ultimaker = (self._package_type == "plugin" and "verified" in tags) or (
|
||||
|
@ -210,6 +211,10 @@ class PackageModel(QObject):
|
|||
def packageId(self) -> str:
|
||||
return self._package_id
|
||||
|
||||
@pyqtProperty(str, constant=True)
|
||||
def marketplaceURL(self)-> str:
|
||||
return self._marketplace_url
|
||||
|
||||
@pyqtProperty(str, constant = True)
|
||||
def packageType(self) -> str:
|
||||
return self._package_type
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue