Skip to content

Commit

Permalink
Fix some pattern lookup failure
Browse files Browse the repository at this point in the history
  • Loading branch information
fdev31 committed Feb 5, 2024
1 parent 99b5ba0 commit 735a8cb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pyprland/plugins/monitors.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,10 +288,11 @@ def resolve_names(self, monitors):
for position, descr_list in placement.items():
if isinstance(descr_list, str):
descr_list = [descr_list]
resolved = [
self._get_mon_by_pat(p, monitors_by_descr)["name"]
for p in descr_list
]
resolved = []
for p in descr_list:
r = self._get_mon_by_pat(p, monitors_by_descr)
if r:
resolved.append(r["name"])
if resolved:
cleaned_config[name1][clean_pos(position)] = [
r for r in resolved if r in plugged_monitors
Expand Down

0 comments on commit 735a8cb

Please sign in to comment.