Ensure main window is hidden till we call show()

This commit is contained in:
Kovid Goyal 2023-12-01 12:02:53 +05:30
parent 3596471257
commit b3428fd387
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -118,6 +118,7 @@ class Main(MainWindow, MainWindowMixin, DeviceMixin, EmailMixin, # {{{
def __init__(self, opts, parent=None, gui_debug=None):
MainWindow.__init__(self, opts, parent=parent, disable_automatic_gc=True)
self.setVisible(False)
self.setWindowIcon(QApplication.instance().windowIcon())
self.extra_files_watcher = ExtraFilesWatcher(self)
self.jobs_pointer = Pointer(self)