mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 07:03:56 -06:00
Significantly improve the speed of the version upgrader
This knocked about 10 seconds from my boot time. Huzzah :D
This commit is contained in:
parent
48c3ec77dc
commit
4fb9042dbf
4 changed files with 2 additions and 29 deletions
|
@ -1218,6 +1218,8 @@ class CuraApplication(QtApplication):
|
|||
# Once we're at this point, everything should have been flushed already (past OnExitCallbackManager).
|
||||
# It's more difficult to call sys.exit(0): That requires that it happens as the result of a pyqtSignal-emit.
|
||||
# (See https://doc.qt.io/qt-6/qcoreapplication.html#quit)
|
||||
# WARNING: With this in place you CAN NOT use cProfile. You will need to replace the next line with pass
|
||||
# for it to work!
|
||||
os._exit(0)
|
||||
|
||||
return super().event(event)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue