Fix "make not-a-replica"

This commit is contained in:
Roberto Alsina 2022-06-08 13:15:22 -03:00
parent 6c8ff840d0
commit 05bf2b963e

View File

@ -127,12 +127,13 @@ class Window(QObject):
def replica_changed(self): def replica_changed(self):
mon_name = self.ui.screenCombo.currentText() mon_name = self.ui.screenCombo.currentText()
replicate = self.ui.replicaOf.currentText() replicate = self.ui.replicaOf.currentText()
print(f"Making {mon_name} a replica of {replicate}")
if replicate in ("None", "", None):
print("TODO: make things non-replicas")
return
mon = self.screen.monitors[mon_name] mon = self.screen.monitors[mon_name]
if replicate in ("None", "", None):
print(f"Making {mon_name} NOT a replica")
mon.pos_x += 300
else:
replicate = self.screen.monitors[replicate] replicate = self.screen.monitors[replicate]
print(f"Making {mon_name} a replica of {replicate}")
# Making a replica implies: # Making a replica implies:
# Set the same position # Set the same position