mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-31 18:40:56 +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):
|
||||
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():
|
||||
self.render()
|
||||
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