Hide the header if it would be empty

It would be empty if the machine is single extrusion and has no materials or variants.

Contributes to issue CURA-4241.
This commit is contained in:
Ghostkeeper 2017-08-31 15:51:51 +02:00
parent 0fc40d571a
commit 062957c249
No known key found for this signature in database
GPG Key ID: C5F96EE2BC0F7E75

View File

@ -89,6 +89,7 @@ Rectangle
SidebarHeader { SidebarHeader {
id: header id: header
width: parent.width width: parent.width
visible: machineExtruderCount.properties.value > 1 || Cura.MachineManager.hasMaterials || Cura.MachineManager.hasVariants
onShowTooltip: base.showTooltip(item, location, text) onShowTooltip: base.showTooltip(item, location, text)
onHideTooltip: base.hideTooltip() onHideTooltip: base.hideTooltip()