Skip to content

Commit

Permalink
Fix: creg: triggers hilighted as unmapped even when they are
Browse files Browse the repository at this point in the history
  • Loading branch information
kozec committed Dec 25, 2017
1 parent 87a6ab7 commit 8594656
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scc/gui/creg/dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,9 @@ def generate_unassigned(self):
unassigned.add(nameof(a))
for a in TRIGGER_AREAS:
axis = self._axis_data[TRIGGER_AREAS[a]]
if not axis in assigned_axes:
if axis in assigned_axes and a in unassigned:
unassigned.remove(a)
elif axis not in assigned_axes:
unassigned.add(a)
for a in STICK_PAD_AREAS:
area_name, axes = STICK_PAD_AREAS[a]
Expand Down

0 comments on commit 8594656

Please sign in to comment.