mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-17 01:52:02 +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:
|
def dispatch(self, event: int, x: int, y: int) -> None:
|
||||||
if self.loader.start_ms is not None:
|
if self.loader.start_ms is not None:
|
||||||
|
if utils.DISABLE_ANIMATION:
|
||||||
|
self.on_confirm()
|
||||||
self.loader.dispatch(event, x, y)
|
self.loader.dispatch(event, x, y)
|
||||||
else:
|
else:
|
||||||
self.content.dispatch(event, x, y)
|
self.content.dispatch(event, x, y)
|
||||||
|
Loading…
Reference in New Issue
Block a user