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

Show total number of words during device recovery (#320)

Show total number of words during device recovery
This commit is contained in:
Tomas Susanka 2019-07-09 16:30:28 +02:00 committed by GitHub
commit ce312e484b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,6 @@ from trezor.ui.mnemonic_bip39 import Bip39Keyboard
from trezor.ui.mnemonic_slip39 import Slip39Keyboard
from trezor.ui.text import Text
from trezor.ui.word_select import WordSelector
from trezor.utils import format_ordinal
from apps.common import mnemonic, storage
from apps.common.confirm import require_confirm
@ -140,9 +139,9 @@ async def request_mnemonic(ctx: wire.Context, count: int, slip39: bool) -> str:
words = []
for i in range(count):
if slip39:
keyboard = Slip39Keyboard("Type the %s word:" % format_ordinal(i + 1))
keyboard = Slip39Keyboard("Type word %s of %s:" % (i + 1, count))
else:
keyboard = Bip39Keyboard("Type the %s word:" % format_ordinal(i + 1))
keyboard = Bip39Keyboard("Type word %s of %s:" % (i + 1, count))
if __debug__:
word = await ctx.wait(keyboard, input_signal)
else: