mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-06 21:44:01 -06:00
Move visible to Rows for extruder configs
CURA-5941 So the whole row, such as "material", will be shown/hiden based on whether the machine has materials.
This commit is contained in:
parent
109586f69c
commit
85f2a7e8f6
1 changed files with 5 additions and 7 deletions
|
@ -140,6 +140,7 @@ Item
|
|||
Row
|
||||
{
|
||||
height: UM.Theme.getSize("print_setup_item").height
|
||||
visible: extrudersModel.count > 1 // If there is only one extruder, there is no point to enable/disable that.
|
||||
|
||||
Label
|
||||
{
|
||||
|
@ -149,7 +150,6 @@ Item
|
|||
color: UM.Theme.getColor("text")
|
||||
height: parent.height
|
||||
width: selectors.textWidth
|
||||
visible: extrudersModel.count > 1
|
||||
}
|
||||
|
||||
OldControls.CheckBox
|
||||
|
@ -158,7 +158,6 @@ Item
|
|||
enabled: !checked || Cura.MachineManager.numberExtrudersEnabled > 1 //Disable if it's the last enabled extruder.
|
||||
height: UM.Theme.getSize("setting_control").height
|
||||
style: UM.Theme.styles.checkbox
|
||||
visible: extrudersModel.count > 1
|
||||
|
||||
/* Use a MouseArea to process the click on this checkbox.
|
||||
This is necessary because actually clicking the checkbox
|
||||
|
@ -177,6 +176,8 @@ Item
|
|||
Row
|
||||
{
|
||||
height: UM.Theme.getSize("print_setup_item").height
|
||||
visible: Cura.MachineManager.hasMaterials
|
||||
|
||||
Label
|
||||
{
|
||||
text: catalog.i18nc("@label", "Material")
|
||||
|
@ -185,7 +186,6 @@ Item
|
|||
color: UM.Theme.getColor("text")
|
||||
height: parent.height
|
||||
width: selectors.textWidth
|
||||
visible: materialSelection.visible
|
||||
}
|
||||
|
||||
OldControls.ToolButton
|
||||
|
@ -197,7 +197,6 @@ Item
|
|||
|
||||
text: Cura.MachineManager.activeStack != null ? Cura.MachineManager.activeStack.material.name : ""
|
||||
tooltip: text
|
||||
visible: Cura.MachineManager.hasMaterials
|
||||
|
||||
height: UM.Theme.getSize("setting_control").height
|
||||
width: selectors.controlWidth
|
||||
|
@ -214,6 +213,7 @@ Item
|
|||
Row
|
||||
{
|
||||
height: UM.Theme.getSize("print_setup_item").height
|
||||
visible: Cura.MachineManager.hasVariants
|
||||
|
||||
Label
|
||||
{
|
||||
|
@ -223,15 +223,13 @@ Item
|
|||
color: UM.Theme.getColor("text")
|
||||
height: parent.height
|
||||
width: selectors.textWidth
|
||||
visible: variantSelection.visible
|
||||
}
|
||||
|
||||
OldControls.ToolButton
|
||||
{
|
||||
id: variantSelection
|
||||
text: Cura.MachineManager.activeVariantName
|
||||
tooltip: Cura.MachineManager.activeVariantName;
|
||||
visible: Cura.MachineManager.hasVariants
|
||||
tooltip: Cura.MachineManager.activeVariantName
|
||||
|
||||
height: UM.Theme.getSize("setting_control").height
|
||||
width: selectors.controlWidth
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue