1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-18 05:28:40 +00:00

Fix use_passphrase setting in storage.py.

This commit is contained in:
andrew 2019-01-15 15:13:51 +01:00 committed by Pavol Rusnak
parent 4246d7f6cd
commit a19446fabd
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -168,7 +168,8 @@ def load_settings(
) -> None: ) -> None:
if label is not None: if label is not None:
config.set(_APP, _LABEL, label.encode(), True) # public 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 is not None:
if homescreen[:8] == b"TOIf\x90\x00\x90\x00": if homescreen[:8] == b"TOIf\x90\x00\x90\x00":
if len(homescreen) <= HOMESCREEN_MAXSIZE: if len(homescreen) <= HOMESCREEN_MAXSIZE: