Skip to content

Commit

Permalink
Update cs_panel.py (#12399)
Browse files Browse the repository at this point in the history
  • Loading branch information
DrearyWillow authored Nov 3, 2024
1 parent c5d83f3 commit 5b05d68
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,9 @@ def on_panel_list_changed(self, *args):
panel_id, monitor_id, position = def_.split(":")
monitor_id = int(monitor_id)

if self.id_or_monitor_position_used(already_defined_panels, monitor_layout, panel_id, monitor_id, position):
if monitor_id >= n_mons:
print("cs_panel: Ignoring panel definition with a monitor out of range: (ID: %s, Monitor: %d, Position: %s)" % (panel_id, monitor_id, position))
elif self.id_or_monitor_position_used(already_defined_panels, monitor_layout, panel_id, monitor_id, position):
removals.append(def_)
continue

Expand Down

0 comments on commit 5b05d68

Please sign in to comment.