mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-27 07:23:25 +00:00
kivy: improve status dialog
This commit is contained in:
parent
326a44cd83
commit
74b12f02b5
2 changed files with 6 additions and 3 deletions
|
@ -749,6 +749,8 @@ class ElectrumWindow(App):
|
||||||
self.protected(_("Enter your PIN code in order to decrypt your seed"), self._show_seed, (label,))
|
self.protected(_("Enter your PIN code in order to decrypt your seed"), self._show_seed, (label,))
|
||||||
|
|
||||||
def _show_seed(self, label, password):
|
def _show_seed(self, label, password):
|
||||||
|
if not password:
|
||||||
|
return
|
||||||
try:
|
try:
|
||||||
seed = self.wallet.get_seed(password)
|
seed = self.wallet.get_seed(password)
|
||||||
except:
|
except:
|
||||||
|
|
|
@ -5,9 +5,9 @@ Popup:
|
||||||
confirmed: 0
|
confirmed: 0
|
||||||
unconfirmed: 0
|
unconfirmed: 0
|
||||||
unmatured: 0
|
unmatured: 0
|
||||||
|
watching_only: app.wallet.is_watching_only()
|
||||||
on_parent:
|
on_parent:
|
||||||
self.confirmed, self.unconfirmed, self.unmatured = app.wallet.get_balance()
|
self.confirmed, self.unconfirmed, self.unmatured = app.wallet.get_balance()
|
||||||
|
|
||||||
BoxLayout:
|
BoxLayout:
|
||||||
orientation: 'vertical'
|
orientation: 'vertical'
|
||||||
ScrollView:
|
ScrollView:
|
||||||
|
@ -54,8 +54,8 @@ Popup:
|
||||||
data: app.wallet.get_master_public_key()
|
data: app.wallet.get_master_public_key()
|
||||||
name: _('Master Public Key')
|
name: _('Master Public Key')
|
||||||
TopLabel:
|
TopLabel:
|
||||||
text: ''
|
|
||||||
id: seed_label
|
id: seed_label
|
||||||
|
text: _('This wallet is watching-only') if root.watching_only else ''
|
||||||
|
|
||||||
BoxLayout:
|
BoxLayout:
|
||||||
size_hint: 1, None
|
size_hint: 1, None
|
||||||
|
@ -63,7 +63,8 @@ Popup:
|
||||||
Button:
|
Button:
|
||||||
size_hint: 0.5, None
|
size_hint: 0.5, None
|
||||||
height: '48dp'
|
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:
|
on_release:
|
||||||
setattr(seed_label, 'text', '') if seed_label.text else app.show_seed(seed_label)
|
setattr(seed_label, 'text', '') if seed_label.text else app.show_seed(seed_label)
|
||||||
Button:
|
Button:
|
||||||
|
|
Loading…
Add table
Reference in a new issue