Commit 29a535b1 authored by Nate Graham's avatar Nate Graham 🔩
Browse files

[applet] Fix tooltip showing wrong name for connected device

This was introduced with c810d1f3
and is my fault, sorry. `device` is undefined in the single device use
case; we need to do `connectedDevices[0]` instead to make sure we get
the right one.

BUG: 422691
FIXED-IN: 5.19.1
parent bc1beed3
......@@ -52,7 +52,7 @@ function updateStatus()
text = i18n("Bluetooth is offline");
}
} else if (connectedDevices.length == 1) {
text = i18n("%1 connected", device.name);
text = i18n("%1 connected", connectedDevices[0].name);
} else if (connectedDevices.length > 1) {
text = i18ncp("Number of connected devices", "%1 connected device", "%1 connected devices", connectedDevices.length);
for (var i = 0; i < connectedDevices.length; ++i) {
......
Markdown is supported
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