mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
fix #3601
This commit is contained in:
parent
e98406fc7c
commit
e4308a360b
1 changed files with 5 additions and 0 deletions
|
@ -943,9 +943,14 @@ class ElectrumWindow(App):
|
|||
self._password_dialog.open()
|
||||
|
||||
def export_private_keys(self, pk_label, addr):
|
||||
if self.wallet.is_watching_only():
|
||||
self.show_info(_('This is a watching-only wallet. It does not contain private keys.'))
|
||||
return
|
||||
def show_private_key(addr, pk_label, password):
|
||||
if self.wallet.has_password() and password is None:
|
||||
return
|
||||
if not self.wallet.can_export():
|
||||
return
|
||||
key = str(self.wallet.export_private_key(addr, password)[0])
|
||||
pk_label.data = key
|
||||
self.protected(_("Enter your PIN code in order to decrypt your private key"), show_private_key, (addr, pk_label))
|
||||
|
|
Loading…
Add table
Reference in a new issue