mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-22 14:28:07 +00:00
pass kwargs through to ConfirmDialog
This commit is contained in:
parent
3746777628
commit
4bf7535903
@ -1,16 +1,15 @@
|
||||
from trezor import wire
|
||||
from trezor import ui
|
||||
from trezor.utils import unimport_gen
|
||||
|
||||
|
||||
@unimport_gen
|
||||
def confirm(content=None, code=None):
|
||||
def confirm(content=None, code=None, **kwargs):
|
||||
from trezor.ui.confirm import ConfirmDialog, CONFIRMED
|
||||
from trezor.messages.ButtonRequest import ButtonRequest
|
||||
from trezor.messages.ButtonRequestType import Other
|
||||
from trezor.messages.ButtonAck import ButtonAck
|
||||
|
||||
dialog = ConfirmDialog(content)
|
||||
dialog = ConfirmDialog(content, **kwargs)
|
||||
dialog.render()
|
||||
|
||||
if code is None:
|
||||
|
Loading…
Reference in New Issue
Block a user