Commit 5b0b2a74 authored by Nate Graham's avatar Nate Graham 🔩

[applet] Show toolbar unless Bluetooth hardware is absent

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: {F8255623}

Reviewers: #vdg, niccolove, manueljlin

Reviewed By: #vdg, manueljlin

Subscribers: broulik, plasma-devel

Tags: #plasma

Maniphest Tasks: T10470

Differential Revision: https://phabricator.kde.org/D29132
parent b75f3680
......@@ -58,7 +58,8 @@ PlasmaComponents3.Page {
header: Toolbar {
id: toolbar
visible: !btManager.bluetoothBlocked && btManager.adapters.length > 0
visible: btManager.adapters.length > 0
enabled: !btManager.bluetoothBlocked
}
FocusScope {
......@@ -75,7 +76,7 @@ PlasmaComponents3.Page {
anchors.fill: parent
visible: toolbar.visible
visible: btManager.adapters.length > 0 && !btManager.bluetoothBlocked
ListView {
anchors.fill: parent
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment