Skip to content

Commit 712d6b9

Browse files
Fix battery status logic for CHARGING and PENDING_CHARGE states
Fixed issue #13686 Previously, PENDING_CHARGE was unreachable due to duplicated condition checks. This separates the logic so both states are handled correctly (i hope).
1 parent 1c50d51 commit 712d6b9

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

files/usr/share/cinnamon/applets/[email protected]/applet.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,9 @@ class CinnamonPowerApplet extends Applet.TextIconApplet {
448448
else if (state == UPDeviceState.FULLY_CHARGED) {
449449
status = _("Fully charged");
450450
}
451+
else if (state == UPDeviceState.FULLY_CHARGED) {
452+
status = _("Pending charge");
453+
}
451454
else if (state == UPDeviceState.DISCHARGING) {
452455
if (time == 0) {
453456
status = _("Using battery power");

0 commit comments

Comments
 (0)