This commit is contained in:
Roberto Alsina 2020-02-03 15:40:49 -03:00
parent 31b9d38d0b
commit 71b596eacb

View File

@ -258,8 +258,6 @@ class Window(QObject):
"""Given a monitor's data, try to guess what scaling """Given a monitor's data, try to guess what scaling
mode it's using.""" mode it's using."""
def choose_a_monitor(self): def choose_a_monitor(self):
"""Choose what monitor to select by default. """Choose what monitor to select by default.
@ -269,9 +267,9 @@ class Window(QObject):
candidate = None candidate = None
for name, mon in self.xrandr_info.items(): for name, mon in self.xrandr_info.items():
if not mon['enabled']: if not mon["enabled"]:
continue continue
if mon['primary']: if mon["primary"]:
return name return name
candidate = name candidate = name
return candidate return candidate