Merge pull request #2329 from pypeclub/feature/paint_splash_before_logic

Tray: Paint splash and tray before initialization logic
This commit is contained in:
Jakub Trllo 2021-11-30 21:01:13 +01:00 committed by GitHub
commit f2e37b2082
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -370,8 +370,12 @@ class PypeTrayStarter(QtCore.QObject):
splash = self._get_splash()
splash.show()
self._tray_widget.show()
# Make sure tray and splash are painted out
QtWidgets.QApplication.processEvents()
elif self._timer_counter == 1:
# Second processing of events to make sure splash is painted
QtWidgets.QApplication.processEvents()
self._timer_counter += 1
self._tray_widget.initialize_modules()