mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
Debug information about screens on first restore
This commit is contained in:
parent
cd8308765a
commit
0fbbc255b3
@ -159,8 +159,17 @@ def _restore_geometry(self: QWidget, prefs: dict, name: str) -> bool:
|
|||||||
return _restore_to_new_screen(self, s, x)
|
return _restore_to_new_screen(self, s, x)
|
||||||
|
|
||||||
|
|
||||||
|
screen_debug_has_been_output = False
|
||||||
|
|
||||||
|
|
||||||
def restore_geometry(self: QWidget, prefs: dict, name: str) -> bool:
|
def restore_geometry(self: QWidget, prefs: dict, name: str) -> bool:
|
||||||
if restore_geometry(self, prefs, name):
|
global screen_debug_has_been_output
|
||||||
|
if not screen_debug_has_been_output:
|
||||||
|
screen_debug_has_been_output = True
|
||||||
|
debug('Screens currently in system:')
|
||||||
|
for screen in QApplication.instance().screens():
|
||||||
|
debug(screen_as_dict(screen))
|
||||||
|
if _restore_geometry(self, prefs, name):
|
||||||
return True
|
return True
|
||||||
sz = self.sizeHint()
|
sz = self.sizeHint()
|
||||||
if sz.isValid():
|
if sz.isValid():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user