Skip to content

Commit

Permalink
Merge pull request #384 from Foundation-Devices/SFT-2273-suggest-onbo…
Browse files Browse the repository at this point in the history
…arding-in-a-secure-place

SFT-2273: suggest onboarding in a secure place
  • Loading branch information
mjg-foundation authored Sep 11, 2023
2 parents 3a9923e + 8122bc7 commit 0d2eac9
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,18 @@ async def show_welcome(self):
statusbar={'title': 'WELCOME', 'icon': 'ICON_HOME'},
left_micron=microns.Shutdown,
right_micron=microns.Forward).show()
if result:
self.goto(self.show_warning)
else:
await ShutdownPage().show()

async def show_warning(self):
from pages import InfoPage, ShutdownPage

result = await InfoPage(
text='Make sure you are in a quiet and secure place, with access to a pen, paper, and the internet.',
left_micron=microns.Shutdown,
right_micron=microns.Forward).show()
if result:
self.goto(self.select_mode)
else:
Expand Down

0 comments on commit 0d2eac9

Please sign in to comment.