From 57896241713a56e1235211b8e10fc95214ed497a Mon Sep 17 00:00:00 2001 From: Adam McKellar Date: Sat, 2 Nov 2024 20:32:52 +0100 Subject: [PATCH] fix: controllers not being removed if no controller is connected --- gamepadla_plus/__main__.py | 3 +++ 1 file changed, 3 insertions(+) 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()