mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 15:38:11 +00:00
fix(core): Disable hold-to-confirm animation when animations are disabled.
This commit is contained in:
parent
d4f6b5fc48
commit
5593862dc1
@ -252,6 +252,8 @@ class HoldToConfirm(ui.Layout):
|
||||
|
||||
def dispatch(self, event: int, x: int, y: int) -> None:
|
||||
if self.loader.start_ms is not None:
|
||||
if utils.DISABLE_ANIMATION:
|
||||
self.on_confirm()
|
||||
self.loader.dispatch(event, x, y)
|
||||
else:
|
||||
self.content.dispatch(event, x, y)
|
||||
|
Loading…
Reference in New Issue
Block a user