Commit ef856e35 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

Add specialized notification for Bluetooth battery

Since we have a type for generic Bluetooth devices now, add a specialized notification for it.

Differential Revision: https://phabricator.kde.org/D25950
parent 0f75d80f
......@@ -542,6 +542,13 @@ bool Core::emitBatteryChargePercentNotification(int currentPercent, int previous
"Please recharge or replace the battery.", name);
icon = QStringLiteral("input-keyboard");
break;
case Battery::BluetoothBattery:
title = i18n("Bluetooth Device Battery Low (%1% Remaining)", currentPercent);
msg = i18nc("Placeholder is device name",
"The battery in Bluetooth device \"%1\" is running low, and the device may turn off at any time. "
"Please recharge or replace the battery.", name);
icon = QStringLiteral("preferences-system-bluetooth");
break;
default:
title = i18nc("The battery in an external device", "Device Battery Low (%1% Remaining)", currentPercent);
msg = i18nc("Placeholder is device name",
......
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