From 3f8f363836a36493aa90a178e89eb0ee99b51e45 Mon Sep 17 00:00:00 2001 From: Diego Prado Gesto Date: Fri, 1 Mar 2019 10:57:39 +0100 Subject: [PATCH] Fix the installed checkmark in Marketplace Show a package as completelly installed if the user has more or the same number of packages than in the list. Otherwise if the contributor removes one of the packages from the list, it seems that I don't have all the packages installed when in fact I do. --- plugins/Toolbox/resources/qml/ToolboxDownloadsGridTile.qml | 4 ++-- .../Toolbox/resources/qml/ToolboxDownloadsShowcaseTile.qml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/Toolbox/resources/qml/ToolboxDownloadsGridTile.qml b/plugins/Toolbox/resources/qml/ToolboxDownloadsGridTile.qml index a11c6ee963..7844a5c394 100644 --- a/plugins/Toolbox/resources/qml/ToolboxDownloadsGridTile.qml +++ b/plugins/Toolbox/resources/qml/ToolboxDownloadsGridTile.qml @@ -76,12 +76,12 @@ Item height: (parent.height * 0.4) | 0 anchors { - bottom: parent.bottom + bottom: parent.bottomcommi right: parent.right } sourceSize.height: height visible: installedPackages != 0 - color: (installedPackages == packageCount) ? UM.Theme.getColor("primary") : UM.Theme.getColor("border") + color: (installedPackages >= packageCount) ? UM.Theme.getColor("primary") : UM.Theme.getColor("border") source: "../images/installed_check.svg" } } diff --git a/plugins/Toolbox/resources/qml/ToolboxDownloadsShowcaseTile.qml b/plugins/Toolbox/resources/qml/ToolboxDownloadsShowcaseTile.qml index 3699746b86..89348b18de 100644 --- a/plugins/Toolbox/resources/qml/ToolboxDownloadsShowcaseTile.qml +++ b/plugins/Toolbox/resources/qml/ToolboxDownloadsShowcaseTile.qml @@ -61,7 +61,7 @@ Rectangle right: parent.right } visible: installedPackages != 0 - color: (installedPackages == packageCount) ? UM.Theme.getColor("primary") : UM.Theme.getColor("border") + color: (installedPackages >= packageCount) ? UM.Theme.getColor("primary") : UM.Theme.getColor("border") source: "../images/installed_check.svg" }