Display the missing battery icon until we get data from Tuhi

pull/145/head
Peter Hutterer 2019-07-16 14:50:13 +10:00
parent e999beafd7
commit 951bc85139
1 changed files with 3 additions and 0 deletions

View File

@ -168,6 +168,9 @@ class DrawingPerspective(Gtk.Stack):
if device.battery_state == 1:
state = '-charging'
elif device.battery_state == 0: # unknown
fill = 'missing'
state = ''
else:
state = ''
batt_icon_name = f'battery-{fill}{state}-symbolic'