mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 06:39:04 +08:00
Add processEvents calls to multiply job
Because we want them delicious updates CURA-7106
This commit is contained in:
parent
9014fa79e2
commit
85797c4cf5
@ -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…
x
Reference in New Issue
Block a user