Skip to content

Commit 4d3e6d7

Browse files
committed
fix: fix set comparison
1 parent 30113cf commit 4d3e6d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wlr_layout_ui/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def main():
5757
for key in sorted(profiles.keys()):
5858
prof_uids = {p["uid"] for p in profiles[key]}
5959
# check that the two sets have the same elements
60-
if len(prof_uids - current_uids) == 0:
60+
if len(prof_uids & current_uids) == len(current_uids):
6161
print(f"Matched profile {key}. Applying it...")
6262
apply_profile(profiles[key])
6363
sys.exit(0)

0 commit comments

Comments
 (0)