From 8e57e4d9b7d041deef6d8302a9573d71f879efce Mon Sep 17 00:00:00 2001 From: Nate Graham Date: Thu, 17 Feb 2022 09:55:34 -0700 Subject: [PATCH] applets/batterymonitor: Communicate that charging limits are approximate Kernel developers have said that charge limits are approximate, not exact[1]. As a result, if for example you have a charge limit of 80%, your battery might actually stop charging anywhere between 78-82%. But if we only list the charge limit itself, it looks to users like a KDE bug when the battery stops charging at any number other than that limit. To alleviate that, this commit adjusts the text to indicate that the charge limit is appropximate. [1] https://bugzilla.kernel.org/show_bug.cgi?id=215531#c3 --- applets/batterymonitor/package/contents/ui/BatteryItem.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applets/batterymonitor/package/contents/ui/BatteryItem.qml b/applets/batterymonitor/package/contents/ui/BatteryItem.qml index 5f5da13d6..b0f0fd462 100644 --- a/applets/batterymonitor/package/contents/ui/BatteryItem.qml +++ b/applets/batterymonitor/package/contents/ui/BatteryItem.qml @@ -193,7 +193,7 @@ RowLayout { readonly property bool pluggedIn: pmSource.data["AC Adapter"] !== undefined && pmSource.data["AC Adapter"]["Plugged in"] visible: pluggedIn && typeof chargeStopThreshold === "number" && chargeStopThreshold > 0 && chargeStopThreshold < 100 iconSource: "kt-speed-limits" // FIXME good icon - text: i18n("Your battery is configured to only charge up to %1%.", chargeStopThreshold || 0) + text: i18n("Battery is configured to charge up to approximately %1%.", chargeStopThreshold || 0) } } }