mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
Uf there is only one screen of matching size, use it
This commit is contained in:
parent
de88d2fd39
commit
db2bf66f97
@ -101,6 +101,8 @@ def find_matching_screen(screen_as_dict):
|
|||||||
for q in screens_of_matching_size:
|
for q in screens_of_matching_size:
|
||||||
if match('name', q.name()) and match('manufacturer', q.manufacturer()) and match('model', q.model()):
|
if match('name', q.name()) and match('manufacturer', q.manufacturer()) and match('model', q.model()):
|
||||||
return q
|
return q
|
||||||
|
if len(screens_of_matching_size) == 1:
|
||||||
|
return screens_of_matching_size[0]
|
||||||
|
|
||||||
|
|
||||||
def _do_restore(self: QWidget, s: QScreen, geometry: QRect, saved_data: dict):
|
def _do_restore(self: QWidget, s: QScreen, geometry: QRect, saved_data: dict):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user