Fix the variants menu so the variants actually get added

Contributes to CURA-24
This commit is contained in:
Arjen Hiemstra 2015-09-29 16:30:59 +02:00
parent 3b5664f250
commit d2ed9bc74f

View File

@ -57,6 +57,8 @@ Item{
exclusiveGroup: variantSelectionMenuGroup; exclusiveGroup: variantSelectionMenuGroup;
onTriggered: UM.MachineManager.setActiveMachineVariant(model.getItem(index).name) onTriggered: UM.MachineManager.setActiveMachineVariant(model.getItem(index).name)
} }
onObjectAdded: variantsSelectionMenu.insertItem(index, object)
onObjectRemoved: variantsSelectionMenu.removeItem(object)
} }
ExclusiveGroup { id: variantSelectionMenuGroup; } ExclusiveGroup { id: variantSelectionMenuGroup; }