Set the current balance in the tray icon

This commit is contained in:
Maran 2013-07-26 21:14:51 +02:00
parent ea1cb0a613
commit 5092c6b8d3
1 changed files with 1 additions and 0 deletions

View File

@ -565,6 +565,7 @@ class ElectrumWindow(QMainWindow):
text = _( "Balance" ) + ": %s "%( self.format_amount(c) ) + self.base_unit()
if u: text += " [%s unconfirmed]"%( self.format_amount(u,True).strip() )
text += self.create_quote_text(Decimal(c+u)/100000000)
self.tray.setToolTip(text)
icon = QIcon(":icons/status_connected.png")
else:
text = _("Not connected")