kivy: improve status dialog
This commit is contained in:
parent
326a44cd83
commit
74b12f02b5
|
@ -749,6 +749,8 @@ class ElectrumWindow(App):
|
|||
self.protected(_("Enter your PIN code in order to decrypt your seed"), self._show_seed, (label,))
|
||||
|
||||
def _show_seed(self, label, password):
|
||||
if not password:
|
||||
return
|
||||
try:
|
||||
seed = self.wallet.get_seed(password)
|
||||
except:
|
||||
|
|
|
@ -5,9 +5,9 @@ Popup:
|
|||
confirmed: 0
|
||||
unconfirmed: 0
|
||||
unmatured: 0
|
||||
watching_only: app.wallet.is_watching_only()
|
||||
on_parent:
|
||||
self.confirmed, self.unconfirmed, self.unmatured = app.wallet.get_balance()
|
||||
|
||||
BoxLayout:
|
||||
orientation: 'vertical'
|
||||
ScrollView:
|
||||
|
@ -54,8 +54,8 @@ Popup:
|
|||
data: app.wallet.get_master_public_key()
|
||||
name: _('Master Public Key')
|
||||
TopLabel:
|
||||
text: ''
|
||||
id: seed_label
|
||||
text: _('This wallet is watching-only') if root.watching_only else ''
|
||||
|
||||
BoxLayout:
|
||||
size_hint: 1, None
|
||||
|
@ -63,7 +63,8 @@ Popup:
|
|||
Button:
|
||||
size_hint: 0.5, None
|
||||
height: '48dp'
|
||||
text: _('Hide seed') if seed_label.text else _('Show seed')
|
||||
text: '' if root.watching_only else (_('Hide seed') if seed_label.text else _('Show seed'))
|
||||
disabled: root.watching_only
|
||||
on_release:
|
||||
setattr(seed_label, 'text', '') if seed_label.text else app.show_seed(seed_label)
|
||||
Button:
|
||||
|
|
Loading…
Reference in New Issue