From 94485e525ce9156ddbf8f50e30d078faaf21b656 Mon Sep 17 00:00:00 2001 From: Kshitij <162005485+PROWLERx15@users.noreply.github.com> Date: Tue, 2 Jun 2026 13:19:24 +0530 Subject: [PATCH] update comment Co-authored-by: kdmukai <934746+kdmukai@users.noreply.github.com> --- src/seedsigner/views/seed_views.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/seedsigner/views/seed_views.py b/src/seedsigner/views/seed_views.py index 53370f0c..cb2032ed 100644 --- a/src/seedsigner/views/seed_views.py +++ b/src/seedsigner/views/seed_views.py @@ -226,10 +226,10 @@ class SeedMnemonicEntryView(View): ) if ret == RET_CODE__BACK_BUTTON: - # RET_CODE__BACK_BUTTON can happen in two ways here: - # 1. Backing out of the very first word completely aborts the mnemonic entry. - # 2. Backing out of a subsequent word just returns to the previous word. - # In both cases we return to BackStackView, but for case #1 we must also discard. + # This handles two possible scenarios: + # 1. Backing out of the first word cancels the mnemonic entry process; + return to whichever `View` routed us here initially. + # 2. Backing out of the current word returns to the previous word. if self.cur_word_index == 0: self.controller.storage.discard_pending_mnemonic() return Destination(BackStackView)