Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix device list not being updated on selecting new bluetooth controller #3362

Merged
merged 1 commit into from
Jun 14, 2024

Conversation

lukasfink1
Copy link
Contributor

I think I forgot two edge cases in my previous pull request that can both be triggered on a system with multiple bluetooth controllers present.

The first issue is that bt->cur_controller_.has_value() isn’t being checked in onObjectRemoved(), which leads to a failed assertion if a bluetooth controller is removed from the system while no controller was currently displayed by waybar.

The second issue is that the list of connected devices isn’t being updated when switching the displayed controller in onObjectRemoved().

Unfortunately due to a lack of multiple bluetooth controllers I can’t test if the bugs are actually triggerable or if this pull request fixes it. I’m quite confident in both, but I’ll try to get my hands on a usb bluetooth dongle next week in order to test it.

@Alexays Alexays merged commit 9ba5825 into Alexays:master Jun 14, 2024
7 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants