mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-23 05:45:59 +01: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
1 changed files with 2 additions and 4 deletions
|
|
@ -399,6 +399,8 @@ def initialize(self, library_path, db, listener, actions, show_gui=True):
|
|||
if config['autolaunch_server']:
|
||||
self.start_content_server()
|
||||
|
||||
if show_gui:
|
||||
self.show()
|
||||
self.read_settings()
|
||||
|
||||
self.finalize_layout()
|
||||
|
|
@ -418,10 +420,6 @@ def initialize(self, library_path, db, listener, actions, show_gui=True):
|
|||
|
||||
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…
Reference in a new issue