mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-03 03:54:01 -06:00
Simplified some code
This commit is contained in:
parent
d93c5e667b
commit
910a55fd50
1 changed files with 1 additions and 3 deletions
|
@ -458,9 +458,7 @@ class ExtruderManager(QObject):
|
||||||
# \param machine_id The machine to remove the extruders for.
|
# \param machine_id The machine to remove the extruders for.
|
||||||
def removeMachineExtruders(self, machine_id: str):
|
def removeMachineExtruders(self, machine_id: str):
|
||||||
for extruder in self.getMachineExtruders(machine_id):
|
for extruder in self.getMachineExtruders(machine_id):
|
||||||
containers = ContainerRegistry.getInstance().findInstanceContainers(type = "user", extruder = extruder.getId())
|
ContainerRegistry.getInstance().removeContainer(extruder.user.getId())
|
||||||
for container in containers:
|
|
||||||
ContainerRegistry.getInstance().removeContainer(container.getId())
|
|
||||||
ContainerRegistry.getInstance().removeContainer(extruder.getId())
|
ContainerRegistry.getInstance().removeContainer(extruder.getId())
|
||||||
|
|
||||||
## Returns extruders for a specific machine.
|
## Returns extruders for a specific machine.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue