Skip to content

bluetooth: Be consistent when determining whether Bluetooth is off

(This is a downstream fix from Endless, but the issue happens upstream too)

It would be nice if we could use the same exact condition to decide whether to show "Off"/"Turn On" vs "On"/"Turn Off" in the menu, since otherwise we risk showing inconsistent states in each place if.

https://bugzilla.gnome.org/show_bug.cgi?id=789110

@hadess from the Bugzilla ticket, there was a question that is important for this patch:

I thought the same thing, but I'm not 100% sure on whether it's possible to have a BT adapter that would be
"powered on"/"available" and would still report to be in airplane mode (either soft or hard), so I thought
the sane thing to do was to check both things, just in case.

Merge request reports