Merge pull request #16845 from Ultimaker/CURA-10967_support-type-with-support-material

CURA-10967
This commit is contained in:
Casper Lamboo 2023-10-05 14:27:04 +02:00 committed by GitHub
commit 8ea04f018b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -43,8 +43,10 @@ RecommendedSettingSection
settingControl: Cura.SingleSettingComboBox settingControl: Cura.SingleSettingComboBox
{ {
id:support
width: parent.width width: parent.width
settingName: "support_structure" settingName: "support_structure"
propertyRemoveUnusedValue: false
} }
}, },
RecommendedSettingItem RecommendedSettingItem
@ -60,6 +62,7 @@ RecommendedSettingSection
settingControl: Cura.SingleSettingExtruderSelectorBar settingControl: Cura.SingleSettingExtruderSelectorBar
{ {
extruderSettingName: "support_extruder_nr" extruderSettingName: "support_extruder_nr"
onSelectedIndexChanged: support.forceUpdateSettings()
} }
}, },
RecommendedSettingItem RecommendedSettingItem

View File

@ -15,6 +15,7 @@ import Cura 1.7 as Cura
Cura.ComboBox { Cura.ComboBox {
textRole: "text" textRole: "text"
property alias settingName: propertyProvider.key property alias settingName: propertyProvider.key
property alias propertyRemoveUnusedValue: propertyProvider.removeUnusedValue
// If true, all extruders will have "settingName" property updated. // If true, all extruders will have "settingName" property updated.
// The displayed value will be read from the extruder with index "defaultExtruderIndex" instead of the machine. // The displayed value will be read from the extruder with index "defaultExtruderIndex" instead of the machine.
@ -87,6 +88,10 @@ Cura.ComboBox {
} }
} }
function forceUpdateSettings()
{
comboboxModel.updateModel();
}
function updateSetting(value) function updateSetting(value)
{ {