Hide extruder selector when there is only one extruder.

CURA-9793
This commit is contained in:
Joey de l'Arago 2022-12-05 17:11:05 +01:00
parent 5a415b8324
commit c495f0de3f

View file

@ -68,10 +68,14 @@ RecommendedSettingSection
Layout.preferredHeight: childrenRect.height
settingName: catalog.i18nc("@action:label", "Print with")
tooltipText: catalog.i18nc("support_extruder_nr description", "The extruder train to use for printing the support. This is used in multi-extrusion.")
isCompressed: enableSupportRow.isCompressed
// Hide this component when there is only one extruder
enabled: machineExtruderCount.properties.value > 1
visible: machineExtruderCount.properties.value > 1
isCompressed: enableSupportRow.isCompressed || machineExtruderCount.properties.value <= 1
settingControl: Cura.SingleSettingExtruderSelectorBar
{
extruderSettingName: "support_extruder_nr"
}
},