Merge pull request #3992 from matejcik/master
Trezor model T does not provide bootloader hash
This commit is contained in:
commit
848f4b9ae0
|
@ -321,8 +321,11 @@ class SettingsDialog(WindowModalDialog):
|
||||||
def update(features):
|
def update(features):
|
||||||
self.features = features
|
self.features = features
|
||||||
set_label_enabled()
|
set_label_enabled()
|
||||||
|
if features.bootloader_hash:
|
||||||
bl_hash = bh2u(features.bootloader_hash)
|
bl_hash = bh2u(features.bootloader_hash)
|
||||||
bl_hash = "\n".join([bl_hash[:32], bl_hash[32:]])
|
bl_hash = "\n".join([bl_hash[:32], bl_hash[32:]])
|
||||||
|
else:
|
||||||
|
bl_hash = "N/A"
|
||||||
noyes = [_("No"), _("Yes")]
|
noyes = [_("No"), _("Yes")]
|
||||||
endis = [_("Enable Passphrases"), _("Disable Passphrases")]
|
endis = [_("Enable Passphrases"), _("Disable Passphrases")]
|
||||||
disen = [_("Disabled"), _("Enabled")]
|
disen = [_("Disabled"), _("Enabled")]
|
||||||
|
|
Loading…
Reference in New Issue