mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-18 13:38:12 +00:00
chore(core): make Suite labeling dialogue more clear
This commit is contained in:
parent
523fdd8157
commit
35896a7d6c
@ -24,11 +24,20 @@ async def cipher_key_value(ctx: Context, msg: CipherKeyValue) -> CipheredKeyValu
|
|||||||
encrypt = msg.encrypt
|
encrypt = msg.encrypt
|
||||||
decrypt = not msg.encrypt
|
decrypt = not msg.encrypt
|
||||||
if (encrypt and msg.ask_on_encrypt) or (decrypt and msg.ask_on_decrypt):
|
if (encrypt and msg.ask_on_encrypt) or (decrypt and msg.ask_on_decrypt):
|
||||||
|
# Special case for Trezor Suite, which asks for setting up labels
|
||||||
|
if msg.key == "Enable labeling?":
|
||||||
|
title = "SUITE LABELING"
|
||||||
|
verb = "ENABLE"
|
||||||
|
else:
|
||||||
if encrypt:
|
if encrypt:
|
||||||
title = "Encrypt value"
|
title = "Encrypt value"
|
||||||
else:
|
else:
|
||||||
title = "Decrypt value"
|
title = "Decrypt value"
|
||||||
await confirm_action(ctx, "cipher_key_value", title, description=msg.key)
|
verb = "CONFIRM"
|
||||||
|
|
||||||
|
await confirm_action(
|
||||||
|
ctx, "cipher_key_value", title, description=msg.key, verb=verb
|
||||||
|
)
|
||||||
|
|
||||||
node = keychain.derive(msg.address_n)
|
node = keychain.derive(msg.address_n)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user