1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 07:28:10 +00:00

Merge pull request #667 from malinah/malinah/confirmbtn

core/trezor/ui/loader: fixes #655 Button hold-to-confirm press detection.
This commit is contained in:
Tomas Susanka 2019-11-01 11:39:31 +01:00 committed by GitHub
commit c261427d73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -82,7 +82,7 @@ class Loader(ui.Component):
display.loader(
r, False, Y, s.fg_color, s.bg_color, res.load(s.icon), s.icon_fg_color
)
if r == 0:
if (r == 0) and (self.stop_ms is not None):
self.start_ms = None
self.stop_ms = None
self.on_start()