mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-03 12:03:57 -06: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
1 changed files with 1 additions and 2 deletions
|
@ -386,8 +386,7 @@ class MachineManager(QObject):
|
||||||
|
|
||||||
if self._global_container_stack.hasErrors():
|
if self._global_container_stack.hasErrors():
|
||||||
return True
|
return True
|
||||||
stacks = list(ExtruderManager.getInstance().getMachineExtruders(self._global_container_stack.getId()))
|
for stack in ExtruderManager.getInstance().getMachineExtruders(self._global_container_stack.getId()):
|
||||||
for stack in stacks:
|
|
||||||
if stack.hasErrors():
|
if stack.hasErrors():
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue