From 5ff76141fc72eb2b18a2fab58b5e9e9a62b92737 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Fri, 26 Nov 2021 18:20:59 +0100 Subject: [PATCH 1/2] make sure splash and tray icon are painted before triggering logic --- openpype/tools/tray/pype_tray.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openpype/tools/tray/pype_tray.py b/openpype/tools/tray/pype_tray.py index 0f817d7130..1751911581 100644 --- a/openpype/tools/tray/pype_tray.py +++ b/openpype/tools/tray/pype_tray.py @@ -370,6 +370,8 @@ 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: self._timer_counter += 1 From 0e37641ec002e765cc3683d2942488ecbb98c5ce Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Mon, 29 Nov 2021 11:46:11 +0100 Subject: [PATCH 2/2] added second processing of events --- openpype/tools/tray/pype_tray.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openpype/tools/tray/pype_tray.py b/openpype/tools/tray/pype_tray.py index 1751911581..8c6a6d3266 100644 --- a/openpype/tools/tray/pype_tray.py +++ b/openpype/tools/tray/pype_tray.py @@ -374,6 +374,8 @@ class PypeTrayStarter(QtCore.QObject): 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()