mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-29 22:01:14 -07:00
Fix SettingComboBox and SettingExtruder in some contexts
Use propertyProvider instead of provider; fixes comboboxes in PostProcessing plugin.
This commit is contained in:
parent
614d4bb21a
commit
1bbf987921
2 changed files with 6 additions and 6 deletions
|
|
@ -86,18 +86,18 @@ SettingItem
|
|||
}
|
||||
}
|
||||
|
||||
onActivated: { forceActiveFocus(); provider.setPropertyValue("value", definition.options[index].key) }
|
||||
onActivated: { forceActiveFocus(); propertyProvider.setPropertyValue("value", definition.options[index].key) }
|
||||
onModelChanged: updateCurrentIndex();
|
||||
|
||||
Connections
|
||||
{
|
||||
target: provider
|
||||
target: propertyProvider
|
||||
onPropertiesChanged: control.updateCurrentIndex()
|
||||
}
|
||||
|
||||
function updateCurrentIndex() {
|
||||
for(var i = 0; i < definition.options.length; ++i) {
|
||||
if(definition.options[i].key == provider.properties.value) {
|
||||
if(definition.options[i].key == propertyProvider.properties.value) {
|
||||
currentIndex = i;
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue