Commit b53d7356 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

Show "Enable bluetooth" only when Manager is operational

The properties are fetched asynchronously, so when opening the KCM it would always briefly
flash the "Enable bluetooth" hint until the list is loaded.

Also check whether the manager itself is operational and don't show it when this isn't the case.

Ideally, we'd had a way to check whether BluezQt is fecthing properties and show a BusyIndicator
and also know when it fails to show a respective error. However, this is a simple fix
that makes the UX slightly more polished.
parent 2710de90
......@@ -48,7 +48,7 @@ ScrollViewKCM {
Kirigami.PlaceholderMessage {
visible: !BluezQt.Manager.bluetoothOperational && !noBluetoothMessage.visible
visible: BluezQt.Manager.operational && !BluezQt.Manager.bluetoothOperational && !noBluetoothMessage.visible
text: i18n("Bluetooth is disabled")
width: parent.width - (Kirigami.Units.largeSpacing * 4)
anchors.centerIn: parent
Supports Markdown
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