mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 07:03:56 -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():
|
||||
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…
Add table
Add a link
Reference in a new issue