propertyvalue update was not successful because of _remove_unused_value in propertyProvider

CURA-10967
This commit is contained in:
saumya.jain 2023-10-05 11:42:28 +02:00
parent 51bc2a8c63
commit ebf58aa972
2 changed files with 3 additions and 4 deletions

View file

@ -23,7 +23,6 @@ RecommendedSettingSection
function onEnableSectionChanged(state)
{
supportEnabled.setPropertyValue("value", state)
support.updateAllExtruders = true
}
property UM.SettingPropertyProvider supportEnabled: UM.SettingPropertyProvider
@ -47,6 +46,7 @@ RecommendedSettingSection
id:support
width: parent.width
settingName: "support_structure"
propertyRemoveUnusedValue: false
}
},
RecommendedSettingItem

View file

@ -15,6 +15,7 @@ import Cura 1.7 as Cura
Cura.ComboBox {
textRole: "text"
property alias settingName: propertyProvider.key
property alias propertyRemoveUnusedValue: propertyProvider.removeUnusedValue
// 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.
@ -89,9 +90,7 @@ Cura.ComboBox {
}
function forceUpdateSettings()
{
updateAllExtruders = false
comboboxModel.updateModel();
propertyProvider.setPropertyValueForce("value", comboboxModel.get(currentIndex).code)
}
function updateSetting(value)
@ -102,7 +101,7 @@ Cura.ComboBox {
}
else
{
propertyProvider.setPropertyValueForce("value", value)
propertyProvider.setPropertyValue("value", value)
}
}
}