[applet] Show toolbar unless Bluetooth hardware is absent
ClosedPublic

Authored by ngraham on Apr 23 2020, 1:45 PM.

Details

Summary

While testing other bluedevil patches, I was finding that the toolbar showing and hiding
itself when bluetooth is turned on and off was feeling a bit weird to me. This patch
makes the toolbar always visible as long as a Bluetooth adapter is present; effectively
this means that the toolbar no longer disappears when bluetooth is disabled. Instead,
the toolbar remains visible but its controls are all disabled.

If nobody likes this, I can drop it, but wanted to present the idea. If we like this,
I would propose doing the same for other applets with toolbars so that they aren't
appearing and disappearing so much.

Test Plan

Diff Detail

Repository
R97 Bluedevil
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
ngraham created this revision.Apr 23 2020, 1:45 PM
Restricted Application added a project: Plasma. · View Herald TranscriptApr 23 2020, 1:45 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
ngraham requested review of this revision.Apr 23 2020, 1:45 PM
manueljlin accepted this revision.Apr 23 2020, 3:04 PM

Much better

This revision is now accepted and ready to land.Apr 23 2020, 3:04 PM
This revision was automatically updated to reflect the committed changes.