Skip to content

Commit

Permalink
SFT-1728: ensured initial seeds can be temporary, removed print
Browse files Browse the repository at this point in the history
  • Loading branch information
mjg-foundation committed Jul 22, 2024
1 parent d5e48b8 commit f622fa5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,12 @@ async def choose_temporary(self):
self.set_result(False)
return

if permanent:
self.goto(self.choose_restore_method)
else:
self.temporary = not permanent
if self.temporary:
settings.enter_temporary_mode()
self.goto(self.explain_temporary)
else:
self.goto(self.choose_restore_method)

async def explain_temporary(self):
from pages import InfoPage
Expand All @@ -66,6 +68,7 @@ async def explain_temporary(self):

if not result:
if not self.back():
settings.exit_temporary_mode()
self.set_result(None)
return

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ def update_predictions(self):
# print('Lookup words for {}'.format(prefix))
set_list(self.prefixes, self.word_idx, prefix)
self.predictions = get_words_matching_prefix(prefix, max=10, word_list=self.word_list)
print("len(predictions): {}".format(len(self.predictions)))
elif self.word_idx == self.total_words - 1:
self.predictions = [RANDOM_WORD_STRING]
else:
Expand Down

0 comments on commit f622fa5

Please sign in to comment.