Skip to content

Commit

Permalink
Undo bandaid to prevent a crash which shouldn't be occuring
Browse files Browse the repository at this point in the history
  • Loading branch information
WhiteMagic committed Jul 21, 2019
1 parent 750d85e commit a8bb3c9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions action_plugins/remap/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,12 @@ def _populate_ui(self):
if self.action_data.parent.tag == "hat_buttons":
input_type = InputType.JoystickButton

# Handle obscure bug which causes the action_data to contain no
# input_type information
if input_type is None:
input_type = InputType.JoystickButton
logging.getLogger("system").warning("None as input type encountered")

# If no valid input item is selected get the next unused one
if self.action_data.vjoy_input_id in [0, None]:
free_inputs = self._get_profile_root().list_unused_vjoy_inputs()
Expand Down

0 comments on commit a8bb3c9

Please sign in to comment.