Commit c810d1f3 authored by Nate Graham's avatar Nate Graham 🔩

[applet] Improve tooltip text for single connected device use case

Also fixes the bug that was making the popup be too wide in this case because we're no
longer using a newline in the text (will fix that for the multi-device case in another
patch later).

Test Plan:
Before: {F8247608}
After: {F8247607}

Reviewers: #vdg, #plasma, drosca, nicolasfella

Reviewed By: nicolasfella

Subscribers: plasma-devel

Tags: #plasma

Differential Revision:
parent 4a8adbae
......@@ -51,7 +51,9 @@ function updateStatus()
} else {
text = i18n("Bluetooth is offline");
} else if (connectedDevices.length) {
} else if (connectedDevices.length == 1) {
text = i18n("%1 connected",;
} 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) {
var device = connectedDevices[i];
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment