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.
This commit is contained in:
Diego Prado Gesto 2019-03-01 10:57:39 +01:00
parent 38a9206898
commit 3f8f363836
2 changed files with 3 additions and 3 deletions

View File

@ -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"
}
}

View File

@ -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"
}