mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-03 20:35:13 +00:00
wait until connected
This commit is contained in:
parent
c735fcd228
commit
37b0737f6d
1 changed files with 5 additions and 0 deletions
|
@ -1572,6 +1572,11 @@ class ElectrumGui:
|
||||||
# ask for the server.
|
# ask for the server.
|
||||||
if not ElectrumWindow.network_dialog( wallet, parent=None ): return False
|
if not ElectrumWindow.network_dialog( wallet, parent=None ): return False
|
||||||
|
|
||||||
|
# wait until we are connected, because the user might have selected another server
|
||||||
|
if not wallet.interface.is_connected:
|
||||||
|
waiting = lambda: False if wallet.interface.is_connected else "connecting...\n"
|
||||||
|
waiting_dialog(waiting)
|
||||||
|
|
||||||
waiting = lambda: False if wallet.up_to_date else "Please wait...\nAddresses generated: %d\nKilobytes received: %.1f"\
|
waiting = lambda: False if wallet.up_to_date else "Please wait...\nAddresses generated: %d\nKilobytes received: %.1f"\
|
||||||
%(len(wallet.all_addresses()), wallet.interface.bytes_received/1024.)
|
%(len(wallet.all_addresses()), wallet.interface.bytes_received/1024.)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue