mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
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:
parent
737a9faa5f
commit
1505d59f4b
1 changed files with 2 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
||||||
# Copyright (c) 2019 Ultimaker B.V.
|
# Copyright (c) 2019 Ultimaker B.V.
|
||||||
# Cura is released under the terms of the LGPLv3 or higher.
|
# Cura is released under the terms of the LGPLv3 or higher.
|
||||||
|
from PyQt5.QtCore import QCoreApplication
|
||||||
|
|
||||||
from UM.Application import Application
|
from UM.Application import Application
|
||||||
from UM.Job import Job
|
from UM.Job import Job
|
||||||
|
@ -94,6 +95,7 @@ class ArrangeObjectsJob(Job):
|
||||||
|
|
||||||
status_message.setProgress((idx + 1) / len(nodes_arr) * 100)
|
status_message.setProgress((idx + 1) / len(nodes_arr) * 100)
|
||||||
Job.yieldThread()
|
Job.yieldThread()
|
||||||
|
QCoreApplication.processEvents()
|
||||||
|
|
||||||
grouped_operation.push()
|
grouped_operation.push()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue