Change confusing naming of section enable switch.

CURA-9793
This commit is contained in:
Joey de l'Arago 2022-11-30 12:12:41 +01:00
parent 4f8943412f
commit dbf27a432f
4 changed files with 11 additions and 11 deletions

View file

@ -14,9 +14,9 @@ RecommendedSettingSection
title: catalog.i18nc("@label", "Adhesion")
icon: UM.Theme.getIcon("Adhesion")
enableSectionVisible: platformAdhesionType.properties.enabled == "True"
enableSectionChecked: platformAdhesionType.properties.value != "skirt" && platformAdhesionType.properties.value != "none"
enableSectionEnabled: recommendedPrintSetup.settingsEnabled
enableSectionSwitchVisible: platformAdhesionType.properties.enabled == "True"
enableSectionSwitchChecked: platformAdhesionType.properties.value != "skirt" && platformAdhesionType.properties.value != "none"
enableSectionSwitchEnabled: recommendedPrintSetup.settingsEnabled
property var curaRecommendedMode: Cura.RecommendedMode {}

View file

@ -13,9 +13,9 @@ Item
property alias title: sectionTitle.text
property alias icon: sectionTitle.source
property alias enableSectionVisible: enableSectionSwitch.visible
property alias enableSectionChecked: enableSectionSwitch.checked
property alias enableSectionEnabled: enableSectionSwitch.enabled
property alias enableSectionSwitchVisible: enableSectionSwitch.visible
property alias enableSectionSwitchChecked: enableSectionSwitch.checked
property alias enableSectionSwitchEnabled: enableSectionSwitch.enabled
property var enableSectionClicked: { return }
property int leftColumnWidth: Math.floor(width * 0.35)
property var toolTipText: ""

View file

@ -14,8 +14,8 @@ RecommendedSettingSection
title: catalog.i18nc("@label", "Strength")
icon: UM.Theme.getIcon("Hammer")
enableSectionVisible: false
enableSectionEnabled: false
enableSectionSwitchVisible: false
enableSectionSwitchEnabled: false
UM.SettingPropertyProvider
{

View file

@ -15,9 +15,9 @@ RecommendedSettingSection
title: catalog.i18nc("@label", "Support")
icon: UM.Theme.getIcon("Support")
enableSectionVisible: supportEnabled.properties.enabled == "True"
enableSectionChecked: supportEnabled.properties.value == "True"
enableSectionEnabled: recommendedPrintSetup.settingsEnabled
enableSectionSwitchVisible: supportEnabled.properties.enabled == "True"
enableSectionSwitchChecked: supportEnabled.properties.value == "True"
enableSectionSwitchEnabled: recommendedPrintSetup.settingsEnabled
toolTipText: catalog.i18nc("@label", "Generate structures to support parts of the model which have overhangs. Without these structures, such parts would collapse during printing.")
function onEnableSectionChanged(state) {