Browse Source
Merge pull request #3992 from matejcik/master
Trezor model T does not provide bootloader hash
3.1
ThomasV
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
2 deletions
-
plugins/trezor/qt_generic.py
|
|
@ -321,8 +321,11 @@ class SettingsDialog(WindowModalDialog): |
|
|
|
def update(features): |
|
|
|
self.features = features |
|
|
|
set_label_enabled() |
|
|
|
bl_hash = bh2u(features.bootloader_hash) |
|
|
|
bl_hash = "\n".join([bl_hash[:32], bl_hash[32:]]) |
|
|
|
if features.bootloader_hash: |
|
|
|
bl_hash = bh2u(features.bootloader_hash) |
|
|
|
bl_hash = "\n".join([bl_hash[:32], bl_hash[32:]]) |
|
|
|
else: |
|
|
|
bl_hash = "N/A" |
|
|
|
noyes = [_("No"), _("Yes")] |
|
|
|
endis = [_("Enable Passphrases"), _("Disable Passphrases")] |
|
|
|
disen = [_("Disabled"), _("Enabled")] |
|
|
|