1
0

show 'server lagging' icon if server lags and client does not use auto-connect

This commit is contained in:
thomasv
2013-10-03 18:43:33 +02:00
parent e462ef48cd
commit 50c9830f79
5 changed files with 11 additions and 4 deletions

View File

@@ -535,6 +535,9 @@ class ElectrumWindow(QMainWindow):
if not self.wallet.up_to_date:
text = _("Synchronizing...")
icon = QIcon(":icons/status_waiting.png")
elif self.network.is_lagging:
text = _("Server is lagging")
icon = QIcon(":icons/status_lagging.png")
else:
c, u = self.wallet.get_account_balance(self.current_account)
text = _( "Balance" ) + ": %s "%( self.format_amount(c) ) + self.base_unit()