mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-12 17:27:51 -06:00
Moved machinePage to Cura
CURA-1278
This commit is contained in:
parent
133229d086
commit
d8e4aa9078
3 changed files with 75 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue