CURA-10967

set property value updated to take into account if resolve is present or not.
This commit is contained in:
saumya.jain 2023-09-28 16:43:24 +02:00
parent 5552b5ced3
commit a8f7e8636c
2 changed files with 7 additions and 0 deletions

View file

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

View file

@ -87,6 +87,11 @@ Cura.ComboBox {
} }
} }
function forceUpdateSettings()
{
comboboxModel.updateModel();
propertyProvider.setPropertyValue("value", comboboxModel.get(currentIndex).code , skip_resolve =true)
}
function updateSetting(value) function updateSetting(value)
{ {