[plasma/plasma-bigscreen] kcms/bluetooth/ui: kcms/bluetooth: add placeholder message if no Bluetooth adapters could be found
Devin Lin <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 1872c5b8b515979f0a2b47747049bf8160896649 by Devin Lin, on behalf of User8395.
Committed on 30/07/2026 at 02:53.
Pushed by devinlin into branch 'master'.
kcms/bluetooth: add placeholder message if no Bluetooth adapters could be found
BUG: 518976
I haven't tested this with inserting a USB adapter since I turned off Bluetooth from my BIOS.
{width=900 height=563}
M +12 -0 kcms/bluetooth/ui/main.qml
https://invent.kde.org/plasma/plasma-bigscreen/-/commit/1872c5b8b515979f0a2b47747049bf8160896649
diff --git a/kcms/bluetooth/ui/main.qml b/kcms/bluetooth/ui/main.qml
index 99ec19d2..c7f3df0c 100644
--- a/kcms/bluetooth/ui/main.qml
+++ b/kcms/bluetooth/ui/main.qml
@@ -58,7 +58,19 @@ Bigscreen.ScrollablePage {
sourceModel: BluezQt.DevicesModel {}
}
+ Kirigami.PlaceholderMessage {
+ id: noBluetoothMessage
+ // We cannot use the adapter count here because that can be zero when
+ // bluetooth is disabled even when there are physical devices
+ visible: BluezQt.Manager.rfkill.state === BluezQt.Rfkill.Unknown
+ icon.name: "edit-none"
+ text: i18n("No Bluetooth adapters found")
+ explanation: i18n("Connect an external Bluetooth adapter")
+ anchors.centerIn: parent
+ }
+
ColumnLayout {
+ visible: !noBluetoothMessage.visible
KeyNavigation.left: bluetoothView.KeyNavigation.left
id: column
spacing: 0