Add MaterialsModel to make material list update upon metadata change

This new model inherits from InstanceContainersModel. The only change is that it updates when the metadata of a material container changes. This is needed to make the list of materials update when the material diameter changes.

Contributes to issue CURA-2822.
This commit is contained in:
Ghostkeeper 2017-06-22 17:21:11 +02:00
parent 0e23930bfe
commit bc219a06fe
No known key found for this signature in database
GPG key ID: C5F96EE2BC0F7E75
3 changed files with 24 additions and 1 deletions

View file

@ -20,7 +20,7 @@ UM.ManagementPage
objectList.positionViewAtBeginning();
}
model: UM.InstanceContainersModel
model: Cura.MaterialsModel
{
filter:
{