From 85946568bba323accae09a1d5f584c79fefce70d Mon Sep 17 00:00:00 2001 From: kozec Date: Mon, 25 Dec 2017 09:22:37 +0100 Subject: [PATCH] Fix: creg: triggers hilighted as unmapped even when they are --- scc/gui/creg/dialog.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scc/gui/creg/dialog.py b/scc/gui/creg/dialog.py index 3b78131fd..ac3f72763 100644 --- a/scc/gui/creg/dialog.py +++ b/scc/gui/creg/dialog.py @@ -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]