Skip to content

Commit

Permalink
Correctly store UI changes in data class
Browse files Browse the repository at this point in the history
  • Loading branch information
WhiteMagic committed Feb 1, 2018
1 parent 1f23adf commit d4b09da
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gremlin/ui/activation_condition.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,8 @@ def _comparison_changed_cb(self, text):
self.condition_data.comparison = text.lower()
elif self.condition_data.input_type == InputType.JoystickHat:
self.condition_data.comparison = text.replace(" ", "-").lower()
elif self.condition_data.input_type == InputType.JoystickAxis:
self.condition_data.comparison = text.lower()
else:
logging.getLogger("system").warning(
"Invalid input type encountered: {}".format(
Expand Down

0 comments on commit d4b09da

Please sign in to comment.