Significantly improve the speed of the version upgrader

This knocked about 10 seconds from my boot time. Huzzah :D
This commit is contained in:
Jaime van Kessel 2024-07-03 17:27:27 +02:00
parent 48c3ec77dc
commit 4fb9042dbf
No known key found for this signature in database
GPG key ID: C85F7A3AF1BAA7C4
4 changed files with 2 additions and 29 deletions

View file

@ -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)