summaryrefslogtreecommitdiff
path: root/modules/lock/Status.qml
diff options
context:
space:
mode:
Diffstat (limited to 'modules/lock/Status.qml')
-rw-r--r--modules/lock/Status.qml5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/lock/Status.qml b/modules/lock/Status.qml
index 0e43aeb..e16c42d 100644
--- a/modules/lock/Status.qml
+++ b/modules/lock/Status.qml
@@ -4,6 +4,7 @@ import qs.config
import qs.utils
import Quickshell
import Quickshell.Widgets
+import Quickshell.Bluetooth
import Quickshell.Services.UPower
import QtQuick
import QtQuick.Layouts
@@ -100,7 +101,7 @@ WrapperItem {
Layout.alignment: Qt.AlignVCenter
animate: true
- text: Bluetooth.powered ? "bluetooth" : "bluetooth_disabled"
+ text: Bluetooth.defaultAdapter.enabled ? "bluetooth" : "bluetooth_disabled"
font.pointSize: Appearance.font.size.large
}
@@ -111,7 +112,7 @@ WrapperItem {
sourceComponent: StyledText {
animate: true
- text: qsTr("%n device(s) connected", "", Bluetooth.devices.filter(d => d.connected).length)
+ text: qsTr("%n device(s) connected", "", Bluetooth.devices.values.filter(d => d.connected).length)
font.pointSize: Appearance.font.size.normal
}
}