Materials & variants are now correctly checked when active

CURA-1278
This commit is contained in:
Jaime van Kessel 2016-05-13 12:04:38 +02:00
parent 5dbe0bdc03
commit dd24e488a8
3 changed files with 16 additions and 5 deletions

View file

@ -156,7 +156,7 @@ Item
{
text: model.name;
checkable: true;
checked: model.active;
checked: model.id == Cura.MachineManager.activeVariantId;
exclusiveGroup: variantSelectionMenuGroup;
onTriggered:
{
@ -199,13 +199,11 @@ Item
{
filter: {"type": "material"}
}
//model: UM.InstancesModel {filter: {"type":"material"}}
// model: UM.MachineMaterialsModel { id: machineMaterialsModel }
MenuItem
{
text: model.name;
checkable: true;
checked: model.active;
checked: model.id == Cura.MachineManager.activeMaterialId;
exclusiveGroup: materialSelectionMenuGroup;
onTriggered:
{