mirror of
https://github.com/ralsina/xrandroll.git
synced 2024-11-24 12:02:23 +00:00
When enabling a monitor, set a mode
This commit is contained in:
parent
f5aaec79e0
commit
99c30ce7b9
@ -117,6 +117,10 @@ class Window(QObject):
|
||||
print(f"Setting {mon} enabled status to {enabled}")
|
||||
monitor = self.xrandr_info[mon]
|
||||
monitor["enabled"] = enabled
|
||||
if enabled and not monitor["current_mode"]:
|
||||
# Choose a mode
|
||||
self.ui.modes.setCurrentIndex(0)
|
||||
self.mode_changed()
|
||||
monitor["item"].update_visuals(monitor)
|
||||
|
||||
def primary_changed(self):
|
||||
|
Loading…
Reference in New Issue
Block a user