firmware: homescreen shows trezor.io/start when storage not initialized

This commit is contained in:
Pavol Rusnak 2017-04-01 23:33:28 +02:00
parent 1eff07f84d
commit 9257d44b7a
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
1 changed files with 6 additions and 3 deletions

View File

@ -22,9 +22,12 @@ def display_homescreen():
image = res.load('apps/homescreen/res/trezor_logo.toig')
ui.display.icon(0, 0, image, ui.WHITE, ui.BLACK)
label = storage.get_label()
if not label:
label = 'My TREZOR'
if not storage.is_initialized():
label = 'Go to trezor.io/start'
else:
label = storage.get_label()
if not label:
label = 'My TREZOR'
ui.display.text_center(120, 210, label, ui.BOLD, ui.WHITE, ui.BLACK)