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

core/trezor/ui/loader: fixes #655 Button hold-to-confirm press detection.

This commit is contained in:
Milan Rossa 2019-10-31 18:02:58 +01:00
parent 68a3094b0a
commit 2143978b12

View File

@ -82,7 +82,7 @@ class Loader(ui.Component):
display.loader( display.loader(
r, False, Y, s.fg_color, s.bg_color, res.load(s.icon), s.icon_fg_color 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.start_ms = None
self.stop_ms = None self.stop_ms = None
self.on_start() self.on_start()