Browse Source

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.
Ghostkeeper 7 years ago
parent
commit
062957c249
1 changed files with 1 additions and 0 deletions
  1. 1 0
      resources/qml/Sidebar.qml

+ 1 - 0
resources/qml/Sidebar.qml

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