CURA-4870 Add the ability in Cura to switch between different types of

printers. Create a new container stack if it doesn't exist with the same
network connection key.
This commit is contained in:
Diego Prado Gesto 2018-03-09 10:47:08 +01:00
parent b212781a19
commit 4be4d08d97
2 changed files with 39 additions and 16 deletions

View file

@ -23,10 +23,10 @@ Menu
checkable: true
checked: Cura.MachineManager.activeMachineDefinitionName == modelData.machine_type
exclusiveGroup: group
// onTriggered:
// {
// TODO
// }
onTriggered:
{
Cura.MachineManager.switchPrinterType(modelData.machine_type)
}
}
onObjectAdded: menu.insertItem(index, object)
onObjectRemoved: menu.removeItem(object)