mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-24 01:35:23 +03:00
Do not display anything if no battery are detected
This commit is contained in:
parent
407dc6b65b
commit
97a9365bf8
@ -183,6 +183,9 @@ class Plugin(GlancesPlugin):
|
||||
ret.append(self.curse_add_line(msg, "TITLE"))
|
||||
|
||||
for i in self.stats:
|
||||
# Do not display anything if no battery are detected
|
||||
if (i['type'] == 'battery' and i['value'] == []):
|
||||
continue
|
||||
# New line
|
||||
ret.append(self.curse_new_line())
|
||||
# Alias for the lable name ?
|
||||
|
Loading…
Reference in New Issue
Block a user