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:
Lipu Fei 2018-01-09 17:02:39 +01:00
parent 3de4940d69
commit 93599de642

View file

@ -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