move visibility code together
This commit is contained in:
parent
a482503583
commit
f6ab55b731
1 changed files with 1 additions and 1 deletions
|
|
@ -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():
|
||||
|
|
|
|||
Loading…
Reference in a new issue