mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
Merge pull request #535 from luleyleo/bluetooth-pill
Display name of connected Bluetooth device in bar pill
This commit is contained in:
@@ -53,6 +53,10 @@ Singleton {
|
||||
"displayMode": "onhover",
|
||||
"warningThreshold": 30
|
||||
},
|
||||
"Bluetooth": {
|
||||
"allowUserSettings": true,
|
||||
"displayMode": "onhover"
|
||||
},
|
||||
"Brightness": {
|
||||
"allowUserSettings": true,
|
||||
"displayMode": "onhover"
|
||||
|
||||
@@ -21,6 +21,12 @@ Singleton {
|
||||
return dev && (dev.paired || dev.trusted)
|
||||
})
|
||||
}
|
||||
readonly property var connectedDevices: {
|
||||
if (!adapter || !adapter.devices) {
|
||||
return []
|
||||
}
|
||||
return adapter.devices.values.filter(dev => dev && dev.connected)
|
||||
}
|
||||
|
||||
readonly property var allDevicesWithBattery: {
|
||||
if (!adapter || !adapter.devices) {
|
||||
|
||||
Reference in New Issue
Block a user