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