File tree Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Original file line number Diff line number Diff line change 25
25
class SeedMnemonicEntryScreen (BaseTopNavScreen ):
26
26
initial_letters : list = None
27
27
wordlist : list = None
28
- predict_final_seed_word : bool = False
29
- partial_mnemonic : list = None
30
28
31
29
def __post_init__ (self ):
32
30
super ().__post_init__ ()
@@ -87,9 +85,7 @@ def __post_init__(self):
87
85
self .keyboard .update_active_keys (active_keys = self .possible_alphabet )
88
86
self .keyboard .set_selected_key (selected_letter = self .letters [- 2 ])
89
87
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 ])
93
89
94
90
self .matches_list_x = self .canvas_width - matches_list_button_width
95
91
self .matches_list_y = self .top_nav .height
@@ -149,12 +145,7 @@ def calc_possible_alphabet(self, new_letter = False):
149
145
# remove duplicates and keep order
150
146
self .possible_alphabet = list (dict .fromkeys (possible_letters ))[:]
151
147
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"
158
149
self .possible_words = []
159
150
160
151
Original file line number Diff line number Diff line change @@ -243,8 +243,6 @@ def run(self):
243
243
title = _ ("Seed Word #{}" ).format (self .cur_word_index + 1 ), # Human-readable 1-indexing!
244
244
initial_letters = list (self .cur_word ) if self .cur_word else ["a" ],
245
245
wordlist = wordlist ,
246
- predict_final_seed_word = predict_final_seed_word ,
247
- partial_mnemonic = partial_mnemonic ,
248
246
)
249
247
250
248
if ret == RET_CODE__BACK_BUTTON :
You can’t perform that action at this time.
0 commit comments