mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Update swatch colors when changing materials
CURA-1971
This commit is contained in:
parent
717fac3d78
commit
b6bf02e0a0
2 changed files with 13 additions and 4 deletions
|
@ -128,7 +128,11 @@ Item {
|
|||
}
|
||||
}
|
||||
|
||||
onActivated: UM.ActiveTool.setProperty("SelectedActiveExtruder", extruders_model.getItem(index).id);
|
||||
onActivated:
|
||||
{
|
||||
UM.ActiveTool.setProperty("SelectedActiveExtruder", extruders_model.getItem(index).id);
|
||||
extruderSelector.color = extruders_model.getItem(index).color;
|
||||
}
|
||||
onModelChanged: updateCurrentIndex();
|
||||
|
||||
function updateCurrentIndex()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue