Update replica_of data when enabling a monitor

This commit is contained in:
Roberto Alsina 2020-02-04 13:49:54 -03:00
parent e52632c8f4
commit 52d84bec91

View File

@ -121,7 +121,10 @@ class Window(QObject):
# Choose a mode # Choose a mode
self.ui.modes.setCurrentIndex(0) self.ui.modes.setCurrentIndex(0)
self.mode_changed() self.mode_changed()
monitor["item"].update_visuals(monitor) self.update_replica_of_data()
for _, mon in self.xrandr_info.items():
mon["item"].update_visuals(mon)
self.adjust_view()
def primary_changed(self): def primary_changed(self):
mon = self.ui.screenCombo.currentText() mon = self.ui.screenCombo.currentText()