diff --git a/gamepadla_plus/__main__.py b/gamepadla_plus/__main__.py index 9afd0aa..7a00eee 100644 --- a/gamepadla_plus/__main__.py +++ b/gamepadla_plus/__main__.py @@ -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()