diff --git a/gotify_tray/gui/MainApplication.py b/gotify_tray/gui/MainApplication.py index 7d0699c..8425130 100644 --- a/gotify_tray/gui/MainApplication.py +++ b/gotify_tray/gui/MainApplication.py @@ -77,7 +77,7 @@ class MainApplication(QtWidgets.QApplication): self.main_window = MainWindow(self.application_model, self.messages_model) self.main_window.show() # The initial .show() is necessary to get the correct sizes when adding MessageWigets - self.main_window.hide() + QtCore.QTimer.singleShot(0, self.main_window.hide) self.refresh_applications()