mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-05 16:51:12 -07:00
Only show support extruder selection when printing support is enabled
CURA-790
This commit is contained in:
parent
581edfeaa5
commit
f3c16198c9
1 changed files with 4 additions and 0 deletions
|
|
@ -316,17 +316,21 @@ Item
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
id: supportExtruderLabel
|
id: supportExtruderLabel
|
||||||
|
visible: supportCheckBox.checked
|
||||||
text: catalog.i18nc("@label:listbox","Print support with:")
|
text: catalog.i18nc("@label:listbox","Print support with:")
|
||||||
font: UM.Theme.getFont("default")
|
font: UM.Theme.getFont("default")
|
||||||
color: UM.Theme.getColor("text")
|
color: UM.Theme.getColor("text")
|
||||||
width: base.width/100* 35 - 2*UM.Theme.getSize("default_margin").width
|
width: base.width/100* 35 - 2*UM.Theme.getSize("default_margin").width
|
||||||
|
height: visible ? mainExtruderLabel.height : 0
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.leftMargin: UM.Theme.getSize("default_margin").width
|
anchors.leftMargin: UM.Theme.getSize("default_margin").width
|
||||||
anchors.verticalCenter: supportExtruderCombobox.verticalCenter
|
anchors.verticalCenter: supportExtruderCombobox.verticalCenter
|
||||||
}
|
}
|
||||||
ComboBox {
|
ComboBox {
|
||||||
id: supportExtruderCombobox
|
id: supportExtruderCombobox
|
||||||
|
visible: supportCheckBox.checked
|
||||||
model: extruderModel
|
model: extruderModel
|
||||||
|
height: visible ? mainExtruderCombobox.height : 0
|
||||||
anchors.top: mainExtruderCombobox.bottom
|
anchors.top: mainExtruderCombobox.bottom
|
||||||
anchors.topMargin: UM.Theme.getSize("default_margin").height
|
anchors.topMargin: UM.Theme.getSize("default_margin").height
|
||||||
anchors.left: supportExtruderLabel.right
|
anchors.left: supportExtruderLabel.right
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue