fixup! chore(core): add an extra confirmation for non-1-of-1 Shamir backups

Ioan Bizău 3 weeks ago
parent e0e143c796
commit 788f9fe115

@ -170,7 +170,9 @@ async def _backup_slip39_custom(
await confirm_action(
"warning_shamir_backup",
TR.reset__title_shamir_backup,
description=TR.reset__create_x_of_y_shamir_backup_template.format(groups[0][0], groups[0][1]),
description=TR.reset__create_x_of_y_shamir_backup_template.format(
groups[0][0], groups[0][1]
),
verb=TR.buttons__continue,
)
if len(groups) == 1:

@ -1390,6 +1390,10 @@ class InputFlowSlip39CustomBackup(InputFlowBase):
self.share_count = share_count
def input_flow_tt(self) -> BRGeneratorType:
if self.share_count > 1:
yield # Checklist
self.debug.press_yes()
yield # Confirm show seeds
self.debug.press_yes()
@ -1401,6 +1405,10 @@ class InputFlowSlip39CustomBackup(InputFlowBase):
self.debug.press_yes()
def input_flow_tr(self) -> BRGeneratorType:
if self.share_count > 1:
yield # Checklist
self.debug.press_yes()
yield # Confirm show seeds
self.debug.press_yes()
@ -1412,6 +1420,10 @@ class InputFlowSlip39CustomBackup(InputFlowBase):
self.debug.press_yes()
def input_flow_t3t1(self) -> BRGeneratorType:
if self.share_count > 1:
yield # Checklist
self.debug.press_yes()
yield # Confirm show seeds
self.debug.press_yes()

Loading…
Cancel
Save