1
0

otp/email dialog handles pressing enter. do not offer to show seed for 2fa wallet.

This commit is contained in:
SomberNight
2018-06-05 15:14:22 +02:00
committed by ThomasV
parent 9ceb73f014
commit 248a3a5755
3 changed files with 38 additions and 24 deletions

View File

@@ -4,6 +4,7 @@ Popup:
unconfirmed: 0
unmatured: 0
watching_only: app.wallet.is_watching_only()
has_seed: app.wallet.has_seed()
on_parent:
self.confirmed, self.unconfirmed, self.unmatured = app.wallet.get_balance()
BoxLayout:
@@ -70,8 +71,8 @@ Popup:
Button:
size_hint: 0.5, None
height: '48dp'
text: '' if root.watching_only else (_('Hide seed') if seed_label.text else _('Show seed'))
disabled: root.watching_only
text: '' if not root.has_seed else (_('Hide seed') if seed_label.text else _('Show seed'))
disabled: not root.has_seed
on_release:
setattr(seed_label, 'text', '') if seed_label.text else app.show_seed(seed_label)
Button: