mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
Use old Qt saved geometry data if new data is not available
This commit is contained in:
parent
0f05cf7655
commit
6d2ea74a2c
@ -148,6 +148,9 @@ def _restore_to_new_screen(self: QWidget, s: QScreen, saved_data: dict) -> bool:
|
||||
def _restore_geometry(self: QWidget, prefs: dict, name: str) -> bool:
|
||||
x = prefs.get(f'geometry-of-{name}')
|
||||
if not x:
|
||||
old = prefs.get(name)
|
||||
if old is not None:
|
||||
return self.restoreGeometry(old)
|
||||
return False
|
||||
if DEBUG:
|
||||
debug('Restoring geometry for:', name)
|
||||
|
Loading…
x
Reference in New Issue
Block a user