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:
commit
ce312e484b
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user