mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-17 01:52:02 +00:00
fix(core): rename confirm_backup to prompt_backup to signify it does not raise on cancellation
[no changelog]
This commit is contained in:
parent
d6c6cacdd2
commit
8f7122cb84
@ -26,7 +26,7 @@ async def reset_device(msg: ResetDevice) -> Success:
|
||||
from trezor import config, utils
|
||||
from apps.common.request_pin import request_pin_confirm
|
||||
from trezor.ui.layouts import (
|
||||
confirm_backup,
|
||||
prompt_backup,
|
||||
confirm_reset_device,
|
||||
)
|
||||
from trezor.crypto import bip39, random
|
||||
@ -94,7 +94,7 @@ async def reset_device(msg: ResetDevice) -> Success:
|
||||
|
||||
# If doing backup, ask the user to confirm.
|
||||
if perform_backup:
|
||||
perform_backup = await confirm_backup()
|
||||
perform_backup = await prompt_backup()
|
||||
|
||||
# generate and display backup information for the master secret
|
||||
if perform_backup:
|
||||
|
@ -409,7 +409,7 @@ async def confirm_reset_device(
|
||||
)
|
||||
|
||||
|
||||
async def confirm_backup() -> bool:
|
||||
async def prompt_backup() -> bool:
|
||||
br_type = "backup_device"
|
||||
br_code = ButtonRequestType.ResetDevice
|
||||
|
||||
|
@ -325,7 +325,7 @@ async def confirm_reset_device(title: str, recovery: bool = False) -> None:
|
||||
|
||||
|
||||
# TODO cleanup @ redesign
|
||||
async def confirm_backup() -> bool:
|
||||
async def prompt_backup() -> bool:
|
||||
result = await interact(
|
||||
RustLayout(
|
||||
trezorui2.confirm_action(
|
||||
|
Loading…
Reference in New Issue
Block a user