mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-08 06:23:59 -06: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
|
@ -105,13 +105,13 @@ SettingItem
|
|||
onActivated:
|
||||
{
|
||||
forceActiveFocus();
|
||||
provider.setPropertyValue("value", extruders_model.getItem(index).index)
|
||||
propertyProvider.setPropertyValue("value", extruders_model.getItem(index).index)
|
||||
}
|
||||
onModelChanged: updateCurrentIndex();
|
||||
|
||||
Connections
|
||||
{
|
||||
target: provider
|
||||
target: propertyProvider
|
||||
onPropertiesChanged: control.updateCurrentIndex();
|
||||
}
|
||||
|
||||
|
@ -119,7 +119,7 @@ SettingItem
|
|||
{
|
||||
for(var i = 0; i < extruders_model.rowCount(); ++i)
|
||||
{
|
||||
if(extruders_model.getItem(i).index == provider.properties.value)
|
||||
if(extruders_model.getItem(i).index == propertyProvider.properties.value)
|
||||
{
|
||||
currentIndex = i;
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue