mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 07:03:56 -06:00
Don't sleep for extruder stacks
Contributes to issue CURA-6793.
This commit is contained in:
parent
5b70d409ed
commit
aed2346465
1 changed files with 2 additions and 2 deletions
|
@ -147,12 +147,12 @@ class ContainerTree:
|
|||
# The ``JobQueue`` will schedule this on a different thread.
|
||||
def run(self) -> None:
|
||||
for stack in self.container_stacks: # Load all currently-added containers.
|
||||
if not isinstance(stack, GlobalStack):
|
||||
continue
|
||||
# Allow a thread switch after every container.
|
||||
# Experimentally, sleep(0) didn't allow switching. sleep(0.1) or sleep(0.2) neither.
|
||||
# We're in no hurry though. Half a second is fine.
|
||||
time.sleep(0.5)
|
||||
if not isinstance(stack, GlobalStack):
|
||||
continue
|
||||
definition_id = stack.definition.getId()
|
||||
if not self.tree_root.machines.is_loaded(definition_id):
|
||||
_ = self.tree_root.machines[definition_id]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue