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:
Ghostkeeper 2017-02-01 14:24:03 +01:00
parent 7d536e2f8b
commit 039015e3df
No known key found for this signature in database
GPG key ID: C5F96EE2BC0F7E75

View file

@ -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