From 41cde6be6cf22c6f41214f752eb51964968680ee Mon Sep 17 00:00:00 2001 From: "Peter D. Gray" Date: Mon, 10 Feb 2025 09:55:50 -0500 Subject: [PATCH] text tweaks --- shared/actions.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/shared/actions.py b/shared/actions.py index 00345e98..b4082566 100644 --- a/shared/actions.py +++ b/shared/actions.py @@ -1419,6 +1419,8 @@ async def bkpw_override(*A): # 1.) manually set bkpw # 2.) remove existing bkpw setting # 3.) view current active bkpw + # - some truncation of titles here on Mk4, + # which is okay because re-using strings to save space. from backups import bkpw_min_len if pa.is_secret_blank(): @@ -1431,14 +1433,16 @@ async def bkpw_override(*A): while True: pwd = settings.get("bkpw", None) - msg = ("Password used to encrypt COLDCARD backup." + msg = ("Password used to encrypt COLDCARD backup files." "\n\nPress (0) to change backup password") esc = "0" if pwd: esc += "12" msg += ", (1) to forget current password, (2) to show current active backup password." + else: + msg += "." - ch = await ux_show_story(title="BKPW", msg=msg, escape=esc) + ch = await ux_show_story(title="BKPW Override", msg=msg, escape=esc) if ch == "x": return elif ch == "1": if await ux_confirm("Delete current stored password?"): @@ -1450,7 +1454,7 @@ async def bkpw_override(*A): if await ux_confirm('The next screen will show current active backup password.' '\n\nAnyone with knowledge of the password will ' 'be able to decrypt your backups.'): - await ux_show_story(pwd) + await ux_show_story(pwd, title="Your Backup Password") elif ch == "0": if version.has_qwerty: