parent
5d6f63d6cf
commit
3a910c86c2
1 changed files with 3 additions and 1 deletions
|
|
@ -10,7 +10,9 @@ var Indicator = new Lang.Class({
|
|||
_getTime() {
|
||||
let seconds = 0;
|
||||
|
||||
if (this._proxy.State == UPower.DeviceState.CHARGING) {
|
||||
if (this._proxy.State == UPower.DeviceState.FULLY_CHARGED) {
|
||||
return '';
|
||||
} else if (this._proxy.State == UPower.DeviceState.CHARGING) {
|
||||
seconds = this._proxy.TimeToFull;
|
||||
} else if (this._proxy.State == UPower.DeviceState.DISCHARGING) {
|
||||
seconds = this._proxy.TimeToEmpty;
|
||||
|
|
|
|||
Loading…
Reference in a new issue