fix battery status staying urgent after being charged
This commit is contained in:
parent
9e971469b4
commit
75beff2610
1 changed files with 3 additions and 0 deletions
|
@ -24,8 +24,11 @@ class PluginThread(threading.Thread):
|
|||
batt_stat = '\u2191'
|
||||
if float(batt_capacity) < 15:
|
||||
self.status['urgent'] = True
|
||||
else:
|
||||
self.status['urgent'] = False
|
||||
else:
|
||||
batt_stat = '\u2193'
|
||||
self.status['urgent'] = False
|
||||
|
||||
batt = 'BAT: ' + batt_capacity + '% ' + batt_stat
|
||||
|
||||
|
|
Loading…
Reference in a new issue