fix battery status staying urgent after being charged

This commit is contained in:
Von Random 2016-10-31 16:35:38 +03:00
parent 9e971469b4
commit 75beff2610

View file

@ -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