Commit ad327dd0 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.21.4
(cherry picked from commit 29a535b1)
parent 5f2bacfa
......@@ -38,7 +38,7 @@ function updateStatus()
text = i18n("Bluetooth is offline");
} else if (connectedDevices.length == 1) {
text = i18n("%1 connected",;
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) {
Supports Markdown
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