move visibility code together

This commit is contained in:
foamyguy 2021-12-10 15:29:49 -06:00
parent a482503583
commit f6ab55b731

View file

@ -231,6 +231,7 @@ def show_hilo():
for i, data in enumerate(hilo_data):
# make it visible
hilo_icons[i].hidden = False
hilo_times[i].hidden = False
# icon
hilo_icons[i][0] = 0 if data["type"] == "H" else 1
# time
@ -240,7 +241,6 @@ def show_hilo():
ampm = "A" if h < 12 else "P"
h = h if h < 13 else h - 12
hilo_times[i].text = "{:>2}:{:02} {}".format(h, m, ampm)
hilo_times[i].hidden = False
def time_to_sleep():