mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-16 11:17:49 -06:00
Machines can now be removed
CURA-1278
This commit is contained in:
parent
d8e4aa9078
commit
78e9545ece
2 changed files with 6 additions and 1 deletions
|
@ -33,6 +33,11 @@ class MachineManagerModel(QObject):
|
||||||
if containers:
|
if containers:
|
||||||
containers[0].setName(new_name)
|
containers[0].setName(new_name)
|
||||||
|
|
||||||
|
@pyqtSlot(str)
|
||||||
|
def removeMachine(self, machine_id):
|
||||||
|
ContainerRegistry.getInstance().removeContainer(machine_id)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def createMachineManagerModel(engine, script_engine):
|
def createMachineManagerModel(engine, script_engine):
|
||||||
return MachineManagerModel()
|
return MachineManagerModel()
|
|
@ -48,7 +48,7 @@ UM.ManagementPage
|
||||||
{
|
{
|
||||||
id: confirmDialog;
|
id: confirmDialog;
|
||||||
object: base.currentItem && base.currentItem.name ? base.currentItem.name : "";
|
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
|
UM.RenameDialog
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue