Skip to content

Commit b725a8b

Browse files
committed
revert: SeedMnemonicEntryScreen
1 parent 5c4ecd0 commit b725a8b

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

src/seedsigner/gui/screens/seed_screens.py

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525
class SeedMnemonicEntryScreen(BaseTopNavScreen):
2626
initial_letters: list = None
2727
wordlist: list = None
28-
predict_final_seed_word: bool = False
29-
partial_mnemonic: list = None
3028

3129
def __post_init__(self):
3230
super().__post_init__()
@@ -87,9 +85,7 @@ def __post_init__(self):
8785
self.keyboard.update_active_keys(active_keys=self.possible_alphabet)
8886
self.keyboard.set_selected_key(selected_letter=self.letters[-2])
8987
else:
90-
self.calc_possible_alphabet()
91-
self.keyboard.update_active_keys(active_keys=self.possible_alphabet)
92-
self.keyboard.set_selected_key(selected_letter=self.letters[-1] if self.letters else self.possible_alphabet[0])
88+
self.keyboard.set_selected_key(selected_letter=self.letters[-1])
9389

9490
self.matches_list_x = self.canvas_width - matches_list_button_width
9591
self.matches_list_y = self.top_nav.height
@@ -149,12 +145,7 @@ def calc_possible_alphabet(self, new_letter = False):
149145
# remove duplicates and keep order
150146
self.possible_alphabet = list(dict.fromkeys(possible_letters))[:]
151147
else:
152-
# For the first letter or after clearing, show all possible first letters
153-
# from the current wordlist (which may already be filtered by the View)
154-
if self.wordlist:
155-
self.possible_alphabet = list(dict.fromkeys(word[0] for word in self.wordlist if word))
156-
else:
157-
self.possible_alphabet = "abcdefghijklmnopqrstuvwxyz"
148+
self.possible_alphabet = "abcdefghijklmnopqrstuvwxyz"
158149
self.possible_words = []
159150

160151

src/seedsigner/views/seed_views.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,6 @@ def run(self):
243243
title=_("Seed Word #{}").format(self.cur_word_index + 1), # Human-readable 1-indexing!
244244
initial_letters=list(self.cur_word) if self.cur_word else ["a"],
245245
wordlist=wordlist,
246-
predict_final_seed_word=predict_final_seed_word,
247-
partial_mnemonic=partial_mnemonic,
248246
)
249247

250248
if ret == RET_CODE__BACK_BUTTON:

0 commit comments

Comments
 (0)