mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 06:28:59 +08:00
Added flush to splash screen
This greatly reduces the issues with it CURA-4343
This commit is contained in:
parent
3be1b8ddf9
commit
276f05bedb
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
from threading import Thread, Event
|
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.QtGui import QPixmap, QColor, QFont, QPen, QPainter
|
||||||
from PyQt5.QtWidgets import QSplashScreen
|
from PyQt5.QtWidgets import QSplashScreen
|
||||||
|
|
||||||
@ -91,6 +91,7 @@ class CuraSplashScreen(QSplashScreen):
|
|||||||
|
|
||||||
self._current_message = message
|
self._current_message = message
|
||||||
self.messageChanged.emit(message)
|
self.messageChanged.emit(message)
|
||||||
|
QCoreApplication.flush()
|
||||||
|
|
||||||
def close(self):
|
def close(self):
|
||||||
# set stop flags
|
# set stop flags
|
||||||
@ -105,7 +106,7 @@ class LoadingTickThread(Thread):
|
|||||||
super().__init__(daemon = True)
|
super().__init__(daemon = True)
|
||||||
self._splash = splash
|
self._splash = splash
|
||||||
self._to_stop = False
|
self._to_stop = False
|
||||||
self._time_interval = 0.05
|
self._time_interval = 0.1
|
||||||
self._event = Event()
|
self._event = Event()
|
||||||
|
|
||||||
def setToStop(self):
|
def setToStop(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user