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

Synchronise settings and global "is-powered" state #195

Merged
merged 18 commits into from
Jun 17, 2023
Merged

Conversation

jeremypw
Copy link
Collaborator

@jeremypw jeremypw commented Apr 8, 2023

After merging this, it is necessary to merge elementary/switchboard-plug-bluetooth#206 to allow switchboard to continue to sync properly.

After merging both PRs, all four switches affecting the Bluetooth power state should remain synchonised and stable.

To test:

  1. Check that changing the Bluetooth enabled state by any of the switches in Wingpanel, Switchboard or io.elementary.desktop.wingpanel.bluetooth.bluetooth-enabled results in the other states changing accordingly.

  2. Suspend and change the Bluetooth enabled state using the greeter wingpanel. This should operate stably. On reawakening, the changed state should be reflected in the session wingpanel.

  3. Restart and check greeter Bluetooth indicator works as expected

src/Services/Manager.vala Outdated Show resolved Hide resolved
Jeremy Wootten and others added 2 commits April 8, 2023 17:34
@jeremypw
Copy link
Collaborator Author

jeremypw commented Apr 8, 2023

Fixing CI ...

@jeremypw jeremypw marked this pull request as draft April 8, 2023 16:57
@jeremypw
Copy link
Collaborator Author

jeremypw commented Apr 8, 2023

This was found to reintroduce #192 😞 so converted back to draft. I am not sure this PR is essential anyway - manually changing the "bluetooth-enabled" setting is unlikely (and unwise) anyway.

@jeremypw jeremypw marked this pull request as ready for review April 8, 2023 19:18
@jeremypw jeremypw requested a review from a team April 8, 2023 19:18
@jeremypw jeremypw marked this pull request as draft April 8, 2023 19:22
@jeremypw
Copy link
Collaborator Author

jeremypw commented Apr 8, 2023

Need to revert unused change.

@jeremypw jeremypw marked this pull request as ready for review April 9, 2023 15:55
@zeebok
Copy link
Contributor

zeebok commented May 13, 2023

Code looks good, I just need to test!

@jeremypw
Copy link
Collaborator Author

@zeebok Thanks for reviewing! Remember that for everything to work properly you need to install the corresponding switchboard plug PR as well 😉

Copy link
Contributor

@zeebok zeebok left a comment

Choose a reason for hiding this comment

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

Works with the other PR just as advertised. Great work!

@jeremypw
Copy link
Collaborator Author

jeremypw commented Jun 6, 2023

Blocking merge until other elementary/switchboard-plug-bluetooth#206 approved - they can then be merged at the same time.

@zeebok
Copy link
Contributor

zeebok commented Jun 17, 2023

Oops that is totally my bad, I forgot to approve the other one! Should be all set now!

@jeremypw jeremypw merged commit 37ce11b into master Jun 17, 2023
@jeremypw jeremypw deleted the fix-settings-fight branch June 17, 2023 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants