Skip to content

Commit

Permalink
fix: controllers not being removed if no controller is connected
Browse files Browse the repository at this point in the history
  • Loading branch information
WyvernIXTL committed Nov 2, 2024
1 parent f0f0235 commit 5789624
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gamepadla_plus/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,9 @@ def update_joysticks():
f"{i}. {j.get_name()}" for (i, j) in enumerate(new_joysticks)
]
window["-GAMEPAD-LIST-"].update(joystick_names)
else:
joysticks = []
window["-GAMEPAD-LIST-"].update([])

update_joysticks()

Expand Down

0 comments on commit 5789624

Please sign in to comment.