Add missing action for button

CURA-8561
This commit is contained in:
Jaime van Kessel 2021-11-17 14:23:26 +01:00
parent 183fa06cfe
commit 07e9237d72
2 changed files with 1 additions and 2 deletions

View file

@ -27,7 +27,6 @@ class PackageModel(QObject):
"""
super().__init__(parent)
self._package_id = package_data.get("package_id", "UnknownPackageId")
self._icon_url = package_data.get("icon_url", "")
self._display_name = package_data.get("display_name", catalog.i18nc("@label:property", "Unknown Package"))
self._is_verified = "verified" in package_data.get("tags", [])

View file

@ -170,6 +170,7 @@ Rectangle
color: externalLinkButton.hovered ? UM.Theme.getColor("action_button_hovered"): "transparent"
radius: externalLinkButton.width / 2
}
onClicked: Qt.openUrlExternally(packageData.authorInfoUrl)
}
}
@ -245,7 +246,6 @@ Rectangle
textFont: descriptionLabel.font
isIconOnRightSide: true
// NOTE: Is this the right URL for this action?
onClicked: Qt.openUrlExternally(packageData.packageInfoUrl)
}
}