mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 05:15:54 +08:00
Let readmore point towards marketplace URL
CURA-8762
This commit is contained in:
parent
7926a2bbdc
commit
d29b00b4be
@ -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
|
||||
|
@ -88,7 +88,7 @@ Rectangle
|
||||
textFont: descriptionLabel.font
|
||||
isIconOnRightSide: true
|
||||
|
||||
onClicked: Qt.openUrlExternally(packageData.packageInfoUrl)
|
||||
onClicked: Qt.openUrlExternally(packageData.marketplaceURL)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user