mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
fix bugs in sweep dialog
This commit is contained in:
parent
3403db9b47
commit
f5380b3500
1 changed files with 3 additions and 2 deletions
|
@ -42,6 +42,7 @@ import PyQt4.QtCore as QtCore
|
||||||
import icons_rc
|
import icons_rc
|
||||||
|
|
||||||
from electrum.bitcoin import COIN, is_valid, TYPE_ADDRESS
|
from electrum.bitcoin import COIN, is_valid, TYPE_ADDRESS
|
||||||
|
from electrum.keystore import is_private_key
|
||||||
from electrum.plugins import run_hook
|
from electrum.plugins import run_hook
|
||||||
from electrum.i18n import _
|
from electrum.i18n import _
|
||||||
from electrum.util import (block_explorer, block_explorer_info, format_time,
|
from electrum.util import (block_explorer, block_explorer_info, format_time,
|
||||||
|
@ -2172,7 +2173,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError):
|
||||||
keys_e.setTabChangesFocus(True)
|
keys_e.setTabChangesFocus(True)
|
||||||
vbox.addWidget(keys_e)
|
vbox.addWidget(keys_e)
|
||||||
|
|
||||||
addresses = self.wallet.get_unused_addresses(None)
|
addresses = self.wallet.get_unused_addresses()
|
||||||
h, address_e = address_field(addresses)
|
h, address_e = address_field(addresses)
|
||||||
vbox.addLayout(h)
|
vbox.addLayout(h)
|
||||||
|
|
||||||
|
@ -2188,7 +2189,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError):
|
||||||
|
|
||||||
def get_pk():
|
def get_pk():
|
||||||
pk = str(keys_e.toPlainText()).strip()
|
pk = str(keys_e.toPlainText()).strip()
|
||||||
if Wallet.is_private_key(pk):
|
if is_private_key(pk):
|
||||||
return pk.split()
|
return pk.split()
|
||||||
|
|
||||||
f = lambda: button.setEnabled(get_address() is not None and get_pk() is not None)
|
f = lambda: button.setEnabled(get_address() is not None and get_pk() is not None)
|
||||||
|
|
Loading…
Add table
Reference in a new issue