mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-01 01:35:20 +00:00
Merge pull request #1291 from kyuupichan/server_height_zero
Show Synchronizing... when server height is zero
This commit is contained in:
commit
444082f90f
1 changed files with 6 additions and 2 deletions
|
@ -511,8 +511,12 @@ class ElectrumWindow(QMainWindow):
|
||||||
icon = QIcon(":icons/status_disconnected.png")
|
icon = QIcon(":icons/status_disconnected.png")
|
||||||
|
|
||||||
elif self.network.is_connected():
|
elif self.network.is_connected():
|
||||||
server_lag = self.network.get_local_height() - self.network.get_server_height()
|
server_height = self.network.get_server_height()
|
||||||
if not self.wallet.up_to_date:
|
server_lag = self.network.get_local_height() - server_height
|
||||||
|
# Server height can be 0 after switching to a new server
|
||||||
|
# until we get a headers subscription request response.
|
||||||
|
# Display the synchronizing message in that case.
|
||||||
|
if not self.wallet.up_to_date or server_height == 0:
|
||||||
text = _("Synchronizing...")
|
text = _("Synchronizing...")
|
||||||
icon = QIcon(":icons/status_waiting.png")
|
icon = QIcon(":icons/status_waiting.png")
|
||||||
elif server_lag > 1:
|
elif server_lag > 1:
|
||||||
|
|
Loading…
Add table
Reference in a new issue