mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -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
|
||||
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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue