mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 21:48:58 +08: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,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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user