diff options
| author | Ultrabug <ultrabug@gentoo.org> | 2015-03-18 15:02:25 +0100 |
|---|---|---|
| committer | Ultrabug <ultrabug@gentoo.org> | 2015-03-18 15:02:25 +0100 |
| commit | 35e1037960e4136af93845743949a78aa4abe4cf (patch) | |
| tree | 99b456069ce8a4340ae8f7dab0deef7e79fe1b11 | |
| parent | d4ea14b0b34097b79bd203c7d57c459ecaed34d2 (diff) | |
remove useless code on online_status module
| -rw-r--r-- | py3status/modules/online_status.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/py3status/modules/online_status.py b/py3status/modules/online_status.py index 432ffb0..8cc6eeb 100644 --- a/py3status/modules/online_status.py +++ b/py3status/modules/online_status.py @@ -38,9 +38,6 @@ class Py3status: return True def online_status(self, i3s_output_list, i3s_config): - self.offline_color = i3s_config['color_bad'] - self.online_color = i3s_config['color_good'] - response = { 'cached_until': time() + self.cache_timeout } @@ -48,10 +45,10 @@ class Py3status: connected = self._connection_present() if connected: response['full_text'] = self.format_online - response['color'] = self.online_color + response['color'] = i3s_config['color_good'] else: response['full_text'] = self.format_offline - response['color'] = self.offline_color + response['color'] = i3s_config['color_bad'] return response |
