mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-22 06:18:07 +00:00
src/apps/fido_u2f: fix confirmation
This commit is contained in:
parent
af53d39c44
commit
ab9a82e95a
@ -469,13 +469,13 @@ class ConfirmState:
|
|||||||
|
|
||||||
@ui.layout
|
@ui.layout
|
||||||
async def confirm_layout(self) -> None:
|
async def confirm_layout(self) -> None:
|
||||||
from trezor.ui.confirm import HoldToConfirmDialog
|
from trezor.ui.confirm import HoldToConfirmDialog, CONFIRMED
|
||||||
|
|
||||||
content = ConfirmContent(self.action, self.app_id)
|
content = ConfirmContent(self.action, self.app_id)
|
||||||
dialog = HoldToConfirmDialog(content)
|
dialog = HoldToConfirmDialog(content)
|
||||||
ui.display.clear()
|
ui.display.clear()
|
||||||
|
|
||||||
return await dialog
|
return await dialog == CONFIRMED
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user