otp/email dialog handles pressing enter. do not offer to show seed for 2fa wallet.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user