Moved machinePage to Cura

CURA-1278
This commit is contained in:
Jaime van Kessel 2016-05-12 11:24:09 +02:00
parent 133229d086
commit d8e4aa9078
3 changed files with 75 additions and 0 deletions

View file

@ -27,6 +27,11 @@ class MachineManagerModel(QObject):
def activeMachineId(self):
return Application.getInstance().getGlobalContainerStack().getId()
@pyqtSlot(str, str)
def renameMachine(self, machine_id, new_name):
containers = ContainerRegistry.getInstance().findContainerStacks(id = machine_id)
if containers:
containers[0].setName(new_name)
def createMachineManagerModel(engine, script_engine):