From 0d2c8777c548fdc7f63d61b61e2f5799f03af421 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Thu, 24 Feb 2022 13:28:39 +0100 Subject: Add clarifying comment to a small hack CURA-8762 --- plugins/Marketplace/resources/qml/PackagePage.qml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins/Marketplace/resources') diff --git a/plugins/Marketplace/resources/qml/PackagePage.qml b/plugins/Marketplace/resources/qml/PackagePage.qml index 00e022dc20..4384d2843f 100644 --- a/plugins/Marketplace/resources/qml/PackagePage.qml +++ b/plugins/Marketplace/resources/qml/PackagePage.qml @@ -40,6 +40,9 @@ Rectangle id: downloadCount Layout.preferredWidth: parent.width Layout.fillHeight: true + // It's not the perfect way to handle this, since a package really can have 0 downloads + // But we re-use the package page for the manage plugins as well. The one user that doesn't see + // the num downloads is an acceptable "sacrifice" to make this easy to fix. visible: packageData.downloadCount != "0" UM.RecolorImage { -- cgit v1.2.3