diff options
author | Jaime van Kessel <nallath@gmail.com> | 2017-09-19 10:32:13 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2017-09-19 10:32:13 +0300 |
commit | e1ea8df84c76abdb7f42b21492532828d5f939ce (patch) | |
tree | 894a9a471ca2041a27f5965292602f0b3b704fe9 /cura/CuraSplashScreen.py | |
parent | e5629f26def385c16d42d9bdd0677d75113de97c (diff) |
Added flush to splash screen
This greatly reduces the issues with it CURA-4343
Diffstat (limited to 'cura/CuraSplashScreen.py')
-rw-r--r-- | cura/CuraSplashScreen.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cura/CuraSplashScreen.py b/cura/CuraSplashScreen.py index 4e4b2ba3a3..d61b7294af 100644 --- a/cura/CuraSplashScreen.py +++ b/cura/CuraSplashScreen.py @@ -3,7 +3,7 @@ from threading import Thread, Event -from PyQt5.QtCore import Qt +from PyQt5.QtCore import Qt, QCoreApplication from PyQt5.QtGui import QPixmap, QColor, QFont, QPen, QPainter from PyQt5.QtWidgets import QSplashScreen @@ -91,6 +91,7 @@ class CuraSplashScreen(QSplashScreen): self._current_message = message self.messageChanged.emit(message) + QCoreApplication.flush() def close(self): # set stop flags @@ -105,7 +106,7 @@ class LoadingTickThread(Thread): super().__init__(daemon = True) self._splash = splash self._to_stop = False - self._time_interval = 0.05 + self._time_interval = 0.1 self._event = Event() def setToStop(self): |