From 951bc8513964145f1174b400f9dc6a67824b7dd7 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 16 Jul 2019 14:50:13 +1000 Subject: [PATCH] Display the missing battery icon until we get data from Tuhi --- tuhigui/drawingperspective.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tuhigui/drawingperspective.py b/tuhigui/drawingperspective.py index 3093397..eb71f94 100644 --- a/tuhigui/drawingperspective.py +++ b/tuhigui/drawingperspective.py @@ -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'