diff --git a/core/.changelog.d/3503.fixed b/core/.changelog.d/3503.fixed new file mode 100644 index 0000000000..34ce2e0d64 --- /dev/null +++ b/core/.changelog.d/3503.fixed @@ -0,0 +1 @@ +Fix cancelling device recovery after aborting from Suite. diff --git a/core/src/apps/management/recovery_device/layout.py b/core/src/apps/management/recovery_device/layout.py index 352cf2d47e..c86246e8e3 100644 --- a/core/src/apps/management/recovery_device/layout.py +++ b/core/src/apps/management/recovery_device/layout.py @@ -9,6 +9,8 @@ from trezor.ui.layouts.recovery import ( # noqa: F401 from apps.common import backup_types +from .recover import RecoveryAborted + if TYPE_CHECKING: from typing import Awaitable @@ -175,8 +177,6 @@ async def homescreen_dialog( import storage.recovery as storage_recovery from trezor.ui.layouts.recovery import continue_recovery - from .recover import RecoveryAborted - recovery_type = storage_recovery.get_type() if not await continue_recovery( button_label,