power: Label the PENDING_CHARGE state as "Not Charging"
The pending-charge state means AC power is on but the battery is not being charged. This can happen because its charge is above a certain threshold, to avoid short charging cycles and prolong the battery's life, or because the PSU is not powerful enough to charge the batteries. Instead of lying to the user about something being estimated, we should simply tell the truth and set the label to "Not Charging". Closes: #701.
This commit is contained in:
parent
240f3faf6e
commit
52c59ac0dd
@ -70,7 +70,9 @@ var Indicator = new Lang.Class({
|
||||
seconds = this._proxy.TimeToFull;
|
||||
else if (this._proxy.State == UPower.DeviceState.DISCHARGING)
|
||||
seconds = this._proxy.TimeToEmpty;
|
||||
// state is one of PENDING_CHARGING, PENDING_DISCHARGING
|
||||
else if (this._proxy.State == UPower.DeviceState.PENDING_CHARGE)
|
||||
return _("Not Charging");
|
||||
// state is PENDING_DISCHARGE
|
||||
else
|
||||
return _("Estimating…");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user