mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 17:28:59 +08:00
Machines can now be removed
CURA-1278
This commit is contained in:
parent
d8e4aa9078
commit
78e9545ece
@ -33,6 +33,11 @@ class MachineManagerModel(QObject):
|
||||
if containers:
|
||||
containers[0].setName(new_name)
|
||||
|
||||
@pyqtSlot(str)
|
||||
def removeMachine(self, machine_id):
|
||||
ContainerRegistry.getInstance().removeContainer(machine_id)
|
||||
|
||||
|
||||
|
||||
def createMachineManagerModel(engine, script_engine):
|
||||
return MachineManagerModel()
|
@ -48,7 +48,7 @@ UM.ManagementPage
|
||||
{
|
||||
id: confirmDialog;
|
||||
object: base.currentItem && base.currentItem.name ? base.currentItem.name : "";
|
||||
onYes: base.model.removeMachineInstance(base.currentItem.name);
|
||||
onYes: Cura.MachineManager.removeMachine(base.currentItem.id);
|
||||
}
|
||||
|
||||
UM.RenameDialog
|
||||
|
Loading…
x
Reference in New Issue
Block a user