Move showing of main window to a bit later in initialization to reduce flashing at startup

This commit is contained in:
Kovid Goyal 2023-12-01 19:08:01 +05:30
parent ed0fac467d
commit cedb228ebf
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -397,13 +397,13 @@ class Main(MainWindow, MainWindowMixin, DeviceMixin, EmailMixin, # {{{
QTimer.singleShot(0, self.hide_windows)
show_gui = False
setattr(self, '__systray_minimized', True)
if show_gui:
self.show()
self.read_settings()
self.finalize_layout()
self.bars_manager.start_animation()
self.set_window_title()
if show_gui:
self.show()
for ac in self.iactions.values():
try: