PATCH player hover bug

This commit is contained in:
2025-04-22 20:57:25 +02:00
parent daa284ed95
commit 6cbbf2edd8
3 changed files with 12 additions and 8 deletions

View File

@@ -57,10 +57,7 @@ class Switch:
## Private methods
def _press(self):
"""Toggle the switch state."""
if self.is_toggled == True:
self.is_toggled = False
else:
self.is_toggled = True
self.is_toggled = not self.is_toggled
## Public methods
def handle_event(self, event):