mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 23:23:57 -06:00
Only try to remove extruders if the machine has any
This commit is contained in:
parent
18dd8dc6cc
commit
29e8325c12
1 changed files with 2 additions and 1 deletions
|
@ -470,7 +470,8 @@ class ExtruderManager(QObject):
|
|||
for extruder in self.getMachineExtruders(machine_id):
|
||||
ContainerRegistry.getInstance().removeContainer(extruder.userChanges.getId())
|
||||
ContainerRegistry.getInstance().removeContainer(extruder.getId())
|
||||
del self._extruder_trains[machine_id]
|
||||
if machine_id in self._extruder_trains:
|
||||
del self._extruder_trains[machine_id]
|
||||
|
||||
## Returns extruders for a specific machine.
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue