Remove tabs and lining with single-extruder printers

There's no sense in showing tabs if the user can't use them.

Contributes to issue CURA-5876.
This commit is contained in:
Ghostkeeper 2018-12-03 09:02:41 +01:00
parent 0a6e420710
commit 82e66eeaa1
No known key found for this signature in database
GPG key ID: 86BEF881AE2CF276

View file

@ -40,6 +40,7 @@ Item
id: tabBar
anchors.top: header.bottom
anchors.topMargin: UM.Theme.getSize("default_margin").height
visible: Cura.MachineManager.numberExtrudersEnabled > 1
currentIndex: Math.max(Cura.ExtruderManager.activeExtruderIndex, 0)
@ -86,8 +87,8 @@ Item
height: childrenRect.height
anchors.top: tabBar.bottom
radius: UM.Theme.getSize("default_radius").width
border.width: UM.Theme.getSize("default_lining").width
radius: tabBar.visible ? UM.Theme.getSize("default_radius").width : 0
border.width: tabBar.visible ? UM.Theme.getSize("default_lining").width : 0
border.color: UM.Theme.getColor("lining")
color: UM.Theme.getColor("main_background")
@ -98,6 +99,7 @@ Item
height: parent.radius
anchors.top: parent.top
color: UM.Theme.getColor("lining")
visible: tabBar.visible
Rectangle
{
anchors