diff options
author | Von Random <von@vdrandom.org> | 2016-10-31 16:35:38 +0300 |
---|---|---|
committer | Von Random <von@vdrandom.org> | 2016-10-31 16:35:38 +0300 |
commit | 75beff26103e0b25c2ccb80da0186f5241efb08d (patch) | |
tree | 26c9541393bc41689a0ed27b5080e861d391e8e5 | |
parent | 9e971469b4f1557fb8564da68cdf42af8b0ed7f8 (diff) |
fix battery status staying urgent after being charged
-rw-r--r-- | plugins/batt.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/batt.py b/plugins/batt.py index b9026f8..34cc7a0 100644 --- a/plugins/batt.py +++ b/plugins/batt.py @@ -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 |