mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-20 21:27:50 -06:00
propertyvalue update was not successful because of _remove_unused_value in propertyProvider
CURA-10967
This commit is contained in:
parent
51bc2a8c63
commit
ebf58aa972
2 changed files with 3 additions and 4 deletions
|
@ -23,7 +23,6 @@ RecommendedSettingSection
|
||||||
function onEnableSectionChanged(state)
|
function onEnableSectionChanged(state)
|
||||||
{
|
{
|
||||||
supportEnabled.setPropertyValue("value", state)
|
supportEnabled.setPropertyValue("value", state)
|
||||||
support.updateAllExtruders = true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
property UM.SettingPropertyProvider supportEnabled: UM.SettingPropertyProvider
|
property UM.SettingPropertyProvider supportEnabled: UM.SettingPropertyProvider
|
||||||
|
@ -47,6 +46,7 @@ RecommendedSettingSection
|
||||||
id:support
|
id:support
|
||||||
width: parent.width
|
width: parent.width
|
||||||
settingName: "support_structure"
|
settingName: "support_structure"
|
||||||
|
propertyRemoveUnusedValue: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
RecommendedSettingItem
|
RecommendedSettingItem
|
||||||
|
|
|
@ -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.
|
||||||
|
@ -89,9 +90,7 @@ Cura.ComboBox {
|
||||||
}
|
}
|
||||||
function forceUpdateSettings()
|
function forceUpdateSettings()
|
||||||
{
|
{
|
||||||
updateAllExtruders = false
|
|
||||||
comboboxModel.updateModel();
|
comboboxModel.updateModel();
|
||||||
propertyProvider.setPropertyValueForce("value", comboboxModel.get(currentIndex).code)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateSetting(value)
|
function updateSetting(value)
|
||||||
|
@ -102,7 +101,7 @@ Cura.ComboBox {
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
propertyProvider.setPropertyValueForce("value", value)
|
propertyProvider.setPropertyValue("value", value)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue