mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 05:49:03 +08:00
Don't unnecessarily copy extruder stacks to list
You're just looping over it. No need to actually make a list out of it. Contributes to issue CURA-3291.
This commit is contained in:
parent
7d536e2f8b
commit
039015e3df
@ -386,8 +386,7 @@ class MachineManager(QObject):
|
||||
|
||||
if self._global_container_stack.hasErrors():
|
||||
return True
|
||||
stacks = list(ExtruderManager.getInstance().getMachineExtruders(self._global_container_stack.getId()))
|
||||
for stack in stacks:
|
||||
for stack in ExtruderManager.getInstance().getMachineExtruders(self._global_container_stack.getId()):
|
||||
if stack.hasErrors():
|
||||
return True
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user