mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
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:
parent
9868c1cc5e
commit
504501de7f
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user