1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-16 19:38:09 +00:00

Improve messages in the Enable PIN dialog and Change PIN dialog.

This commit is contained in:
andrew 2018-12-28 17:19:11 +01:00 committed by Pavol Rusnak
parent 3517018f30
commit efe8a7f065
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -44,19 +44,19 @@ def require_confirm_change_pin(ctx, msg):
if msg.remove and has_pin: # removing pin
text = Text("Remove PIN", ui.ICON_CONFIG)
text.normal("Do you really want to")
text.bold("remove current PIN?")
text.bold("disable PIN protection?")
return require_confirm(ctx, text)
if not msg.remove and has_pin: # changing pin
text = Text("Remove PIN", ui.ICON_CONFIG)
text = Text("Change PIN", ui.ICON_CONFIG)
text.normal("Do you really want to")
text.bold("change current PIN?")
text.bold("change the current PIN?")
return require_confirm(ctx, text)
if not msg.remove and not has_pin: # setting new pin
text = Text("Remove PIN", ui.ICON_CONFIG)
text = Text("Enable PIN", ui.ICON_CONFIG)
text.normal("Do you really want to")
text.bold("set new PIN?")
text.bold("enable PIN protection?")
return require_confirm(ctx, text)