1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 07:28:10 +00:00

Revert changes to seed recovery dialog, to avoid tests failing. These changes were moved to the branch andrewkozlik/pin-messages.

This commit is contained in:
andrew 2019-01-09 12:11:41 +01:00 committed by Pavol Rusnak
parent 97a4cdb68e
commit fa7b496a9a
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -32,12 +32,8 @@ 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")
if msg.dry_run: text = Text("Device recovery", ui.ICON_RECOVERY)
text = Text("Check recovery seed", ui.ICON_RECOVERY) text.normal("Do you really want to", "recover the device?", "")
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)
@ -81,7 +77,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("Recovery seed", ui.ICON_RECOVERY) text = Text("Device recovery", 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))