mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Add processEvents calls to multiply job
Because we want them delicious updates CURA-7106
This commit is contained in:
parent
9014fa79e2
commit
85797c4cf5
1 changed files with 4 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue