mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-08 22:35:03 -06:00
Update current index in material dialog
CURA-4774 There is a delay so we update the current index when the model gets changed.
This commit is contained in:
parent
3de4940d69
commit
93599de642
1 changed files with 9 additions and 0 deletions
|
@ -153,6 +153,15 @@ UM.ManagementPage
|
|||
forceActiveFocus()
|
||||
Cura.ContainerManager.createMaterial()
|
||||
}
|
||||
|
||||
Connections
|
||||
{
|
||||
target: base.objectList.model
|
||||
onItemsChanged:
|
||||
{
|
||||
base.objectList.currentIndex = base.getIndexById(Cura.MachineManager.activeMaterialId);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
// Duplicate button
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue