Add processEvents calls to multiply job

Because we want them delicious updates

CURA-7106
This commit is contained in:
Jaime van Kessel 2020-06-23 11:17:38 +02:00
parent 9014fa79e2
commit 85797c4cf5
No known key found for this signature in database
GPG key ID: 3710727397403C91

View file

@ -4,6 +4,8 @@
import copy
from typing import List
from PyQt5.QtCore import QCoreApplication
from UM.Job import Job
from UM.Operations.GroupedOperation import GroupedOperation
from UM.Message import Message
@ -93,8 +95,9 @@ class MultiplyObjectsJob(Job):
nodes.append(new_node)
current_progress += 1
status_message.setProgress((current_progress / total_progress) * 100)
QCoreApplication.processEvents()
Job.yieldThread()
QCoreApplication.processEvents()
Job.yieldThread()
if nodes: