1
0

use t for tcp; wallet.blocks==-1 means connecting

This commit is contained in:
ThomasV
2012-03-30 17:29:35 +02:00
parent 578baf189d
commit 57c1e6e92b
4 changed files with 16 additions and 10 deletions

View File

@@ -1039,7 +1039,10 @@ class ElectrumWindow:
text = "Not enough funds"
elif interface.is_connected:
self.network_button.set_tooltip_text("Connected to %s:%d.\n%d blocks\nresponse time: %f"%(interface.host, interface.port, self.wallet.blocks, interface.rtime))
if self.wallet.blocks == 0:
if self.wallet.blocks == -1:
self.status_image.set_from_stock(gtk.STOCK_NO, gtk.ICON_SIZE_MENU)
text = "Connecting..."
elif self.wallet.blocks == 0:
self.status_image.set_from_stock(gtk.STOCK_NO, gtk.ICON_SIZE_MENU)
text = "Server not ready"
elif not self.wallet.up_to_date: