CURA-5035 Don't show authors with 0 packages

This commit is contained in:
Ian Paschal 2018-04-13 17:27:57 +02:00
parent 523518020c
commit 85ebe741a8
4 changed files with 36 additions and 19 deletions

View file

@ -12,6 +12,18 @@ Item
{
width: UM.Theme.getSize("toolbox_thumbnail_large").width
height: UM.Theme.getSize("toolbox_thumbnail_large").width
visible:
{
if (toolbox.viewCategory == "material" && model.packages_count)
{
console.log(model)
return model.packages_count > 0
}
else
{
return true
}
}
Rectangle
{
color: "white"