mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-26 01:18:28 +00:00
micro fix
This commit is contained in:
parent
416676120b
commit
96020a4953
@ -107,7 +107,7 @@ def _render_pin_failure(sleep_ms: int):
|
|||||||
ui.BOLD, ui.RED, ui.BLACK)
|
ui.BOLD, ui.RED, ui.BLACK)
|
||||||
|
|
||||||
|
|
||||||
def _get_code_and_label(code: int) -> str:
|
def _get_code_and_label(code: int):
|
||||||
from trezor.messages import PinMatrixRequestType
|
from trezor.messages import PinMatrixRequestType
|
||||||
if code is None:
|
if code is None:
|
||||||
code = PinMatrixRequestType.Current
|
code = PinMatrixRequestType.Current
|
||||||
|
@ -36,7 +36,7 @@ class ConfirmDialog(Widget):
|
|||||||
yield loop.Wait((super().__iter__(), self.content))
|
yield loop.Wait((super().__iter__(), self.content))
|
||||||
|
|
||||||
|
|
||||||
class HoldToConfirmDialog():
|
class HoldToConfirmDialog(Widget):
|
||||||
|
|
||||||
def __init__(self, content=None, hold='Hold to confirm', *args, **kwargs):
|
def __init__(self, content=None, hold='Hold to confirm', *args, **kwargs):
|
||||||
self.button = Button((0, 240 - 48, 240, 48), hold,
|
self.button = Button((0, 240 - 48, 240, 48), hold,
|
||||||
|
Loading…
Reference in New Issue
Block a user