From a19446fabd638dea8725479be7cd959d73fa6633 Mon Sep 17 00:00:00 2001 From: andrew Date: Tue, 15 Jan 2019 15:13:51 +0100 Subject: [PATCH] Fix use_passphrase setting in storage.py. --- src/apps/common/storage.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/apps/common/storage.py b/src/apps/common/storage.py index 0fcced626..ab8624071 100644 --- a/src/apps/common/storage.py +++ b/src/apps/common/storage.py @@ -168,7 +168,8 @@ def load_settings( ) -> None: if label is not None: config.set(_APP, _LABEL, label.encode(), True) # public - _set_bool(_APP, _USE_PASSPHRASE, use_passphrase) + if use_passphrase is not None: + _set_bool(_APP, _USE_PASSPHRASE, use_passphrase) if homescreen is not None: if homescreen[:8] == b"TOIf\x90\x00\x90\x00": if len(homescreen) <= HOMESCREEN_MAXSIZE: