diff options
| author | Soramane <61896496+soramanew@users.noreply.github.com> | 2025-07-16 23:49:45 +1000 |
|---|---|---|
| committer | Soramane <61896496+soramanew@users.noreply.github.com> | 2025-07-16 23:49:45 +1000 |
| commit | 8784a015c2287a84eec226a32a9c11bfc95e8033 (patch) | |
| tree | 1b8290509650a63d188f6b1e9f1a48c6dccc5707 /modules/lock | |
| parent | internal: create service config (diff) | |
| download | caelestia-shell-8784a015c2287a84eec226a32a9c11bfc95e8033.tar.gz caelestia-shell-8784a015c2287a84eec226a32a9c11bfc95e8033.tar.bz2 caelestia-shell-8784a015c2287a84eec226a32a9c11bfc95e8033.zip | |
bluetooth: use qs bluetooth
Diffstat (limited to 'modules/lock')
| -rw-r--r-- | modules/lock/Status.qml | 5 |
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 } } |