Add extra process events to arrange job

Doesn't actually speed up something, but it does prevent the GUI from
freezing, so it looks less laggy.

CURA-7106
This commit is contained in:
Jaime van Kessel 2020-06-23 10:38:21 +02:00
parent 737a9faa5f
commit 1505d59f4b
No known key found for this signature in database
GPG key ID: 3710727397403C91

View file

@ -1,5 +1,6 @@
# Copyright (c) 2019 Ultimaker B.V.
# Cura is released under the terms of the LGPLv3 or higher.
from PyQt5.QtCore import QCoreApplication
from UM.Application import Application
from UM.Job import Job
@ -94,6 +95,7 @@ class ArrangeObjectsJob(Job):
status_message.setProgress((idx + 1) / len(nodes_arr) * 100)
Job.yieldThread()
QCoreApplication.processEvents()
grouped_operation.push()