mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-16 19:38:09 +00:00
Improve messages in the seed recovery dialog to better match the terminology used in Trezor wallet.
This commit is contained in:
parent
efe8a7f065
commit
11ba0b424e
@ -32,8 +32,12 @@ async def recovery_device(ctx, msg):
|
|||||||
if not msg.dry_run and storage.is_initialized():
|
if not msg.dry_run and storage.is_initialized():
|
||||||
raise wire.UnexpectedMessage("Already initialized")
|
raise wire.UnexpectedMessage("Already initialized")
|
||||||
|
|
||||||
text = Text("Device recovery", ui.ICON_RECOVERY)
|
if msg.dry_run:
|
||||||
text.normal("Do you really want to", "recover the device?", "")
|
text = Text("Check recovery seed", ui.ICON_RECOVERY)
|
||||||
|
text.normal("Do you really want to", "check your recovery", "seed?")
|
||||||
|
else:
|
||||||
|
text = Text("Recover wallet", ui.ICON_RECOVERY)
|
||||||
|
text.normal("Do you really want to", "restore a wallet from", "your backup?")
|
||||||
|
|
||||||
await require_confirm(ctx, text, code=ProtectCall)
|
await require_confirm(ctx, text, code=ProtectCall)
|
||||||
|
|
||||||
@ -77,7 +81,7 @@ async def recovery_device(ctx, msg):
|
|||||||
async def request_wordcount(ctx):
|
async def request_wordcount(ctx):
|
||||||
await ctx.call(ButtonRequest(code=MnemonicWordCount), ButtonAck)
|
await ctx.call(ButtonRequest(code=MnemonicWordCount), ButtonAck)
|
||||||
|
|
||||||
text = Text("Device recovery", ui.ICON_RECOVERY)
|
text = Text("Recovery seed", ui.ICON_RECOVERY)
|
||||||
text.normal("Number of words?")
|
text.normal("Number of words?")
|
||||||
count = await ctx.wait(WordSelector(text))
|
count = await ctx.wait(WordSelector(text))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user