[Bug] Run buttons stay active on disconnect. #1021
Labels
bug
Something isn't working
OS: Linux
Issues that only occur on Linux
software: pybricks-code
Issues with https://code.pybricks.com application
Describe the bug
Since there is a 5 second delay on disconnecting on Linux, it's easy to press the buttons because they are still active. This leads to error messages like the one below.
Related, but slightly different: It would be great if the buttons could disable immediately when the hub turns off as well, and start waiting 5 seconds after that.
To reproduce
update-2023-04-01_11.05.30.mp4
Expected behavior
Disable run buttons on disconnect, even if we wait 5 seconds after that.
The text was updated successfully, but these errors were encountered: