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 wingpanel bluetooth indicator settings fight #205

Merged
merged 3 commits into from
Apr 8, 2023

Conversation

jeremypw
Copy link
Contributor

@jeremypw jeremypw commented Apr 8, 2023

Fix #201

This stops the wingpanel indicator overriding the plug and turning Bluetooth back on when switched off in the plug. The plug no longer changes the wingpanel settings. Instead it only interacts with the global state and turns the Bluetooth adaptor(s) on and off. It is left to the wingpanel indicator to pick up the change and make any necessary changes to the UI and settings.

A related PR to the wingpanel will be pushed to completely synchronise the settings, plug and indicator, but this is not required for this PR to work.

An unneeded Idle is removed and an unnecessary public scope reduced to make the code more predicatble.

Suspend/reawaken still works as expected.

Copy link
Member

@lenemter lenemter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good. Tested with elementary/wingpanel-indicator-bluetooth#195. Fixes the issue for me.

@jeremypw jeremypw merged commit b5cb43a into master Apr 8, 2023
@jeremypw jeremypw deleted the fix-wingpanel-fight branch April 8, 2023 16:36
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