mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-03 20:11:00 +00:00
src/trezor/ui/loader: fix clear
This commit is contained in:
parent
bce101b96a
commit
375402db67
@ -58,8 +58,8 @@ class Loader(ui.Widget):
|
|||||||
|
|
||||||
def __iter__(self):
|
def __iter__(self):
|
||||||
sleep = loop.sleep(1000000 // 30) # 30 fps
|
sleep = loop.sleep(1000000 // 30) # 30 fps
|
||||||
ui.display.bar(0, 32, 240, 240 - 80, ui.BG) # clear
|
ui.display.bar(0, 32, 240, 240 - 83, ui.BG) # clear
|
||||||
while self.is_active():
|
while self.is_active():
|
||||||
self.render()
|
self.render()
|
||||||
yield sleep
|
yield sleep
|
||||||
ui.display.bar(0, 32, 240, 240 - 80, ui.BG) # clear
|
ui.display.bar(0, 32, 240, 240 - 83, ui.BG) # clear
|
||||||
|
Loading…
Reference in New Issue
Block a user