1
0

Treozr: improved settings screen

Nicer layout.  Split into three tabs.
This commit is contained in:
Neil Booth
2016-01-08 00:31:02 +09:00
parent b21ea13940
commit a3bced210d
3 changed files with 234 additions and 106 deletions

View File

@@ -14,6 +14,7 @@ class GuiMixin(object):
10: _("Confirm address on %s device to continue"),
'change pin': _("Confirm PIN change on %s device to continue"),
'default': _("Check %s device to continue"),
'homescreen': _("Confirm home screen change on %s device to continue"),
'label': _("Confirm label change on %s device to continue"),
'remove pin': _("Confirm removal of PIN on %s device to continue"),
'passphrase': _("Confirm on %s device to continue"),
@@ -142,6 +143,13 @@ def trezor_client_class(protocol_mixin, base_client, proto):
finally:
self.msg_code_override = None
def change_homescreen(self, homescreen):
self.msg_code_override = 'homescreen'
try:
self.apply_settings(homescreen=homescreen)
finally:
self.msg_code_override = None
def set_pin(self, remove):
self.msg_code_override = 'remove pin' if remove else 'change pin'
try: