From f5502298999ef06c37948f557ffb05c5921a74fa Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Thu, 21 Jun 2018 17:31:25 +0200 Subject: [PATCH] src/apps/homescreen: show PIN not set error only on initialized device --- src/apps/homescreen/homescreen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/homescreen/homescreen.py b/src/apps/homescreen/homescreen.py index 64b479f5ae..2e84f503bb 100644 --- a/src/apps/homescreen/homescreen.py +++ b/src/apps/homescreen/homescreen.py @@ -30,7 +30,7 @@ def display_homescreen(): ui.display.bar(0, 0, ui.WIDTH, 30, ui.YELLOW) ui.display.text_center(ui.WIDTH // 2, 22, 'NEEDS BACKUP!', ui.BOLD, ui.BLACK, ui.YELLOW) ui.display.bar(0, 30, ui.WIDTH, ui.HEIGHT - 30, ui.BG) - elif not config.has_pin(): + elif storage.is_initialized() and not config.has_pin(): ui.display.bar(0, 0, ui.WIDTH, 30, ui.YELLOW) ui.display.text_center(ui.WIDTH // 2, 22, 'PIN NOT SET!', ui.BOLD, ui.BLACK, ui.YELLOW) ui.display.bar(0, 30, ui.WIDTH, ui.HEIGHT - 30, ui.BG)