Revert workaround for Qt Bug that caused calibre to not start full screen in windows 10 tablet mode

The bug has been fixed as of Qt 5.8 https://bugreports.qt.io/browse/QTBUG-56831
And maybe calling restoreGeometry() fter show will help with offscreen
positioning in multi-monitor setups.
This commit is contained in:
Kovid Goyal 2019-10-16 04:14:56 +05:30
parent 9868c1cc5e
commit 504501de7f
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -399,6 +399,8 @@ class Main(MainWindow, MainWindowMixin, DeviceMixin, EmailMixin, # {{{
if config['autolaunch_server']:
self.start_content_server()
if show_gui:
self.show()
self.read_settings()
self.finalize_layout()
@ -418,10 +420,6 @@ class Main(MainWindow, MainWindowMixin, DeviceMixin, EmailMixin, # {{{
register_keyboard_shortcuts()
self.keyboard.finalize()
if show_gui:
# Note this has to come after restoreGeometry() because of
# https://bugreports.qt.io/browse/QTBUG-56831
self.show()
if self.system_tray_icon is not None and self.system_tray_icon.isVisible() and opts.start_in_tray:
self.hide_windows()
self.auto_adder = AutoAdder(gprefs['auto_add_path'], self)