Set the current balance in the tray icon
This commit is contained in:
parent
ea1cb0a613
commit
5092c6b8d3
|
@ -565,6 +565,7 @@ class ElectrumWindow(QMainWindow):
|
||||||
text = _( "Balance" ) + ": %s "%( self.format_amount(c) ) + self.base_unit()
|
text = _( "Balance" ) + ": %s "%( self.format_amount(c) ) + self.base_unit()
|
||||||
if u: text += " [%s unconfirmed]"%( self.format_amount(u,True).strip() )
|
if u: text += " [%s unconfirmed]"%( self.format_amount(u,True).strip() )
|
||||||
text += self.create_quote_text(Decimal(c+u)/100000000)
|
text += self.create_quote_text(Decimal(c+u)/100000000)
|
||||||
|
self.tray.setToolTip(text)
|
||||||
icon = QIcon(":icons/status_connected.png")
|
icon = QIcon(":icons/status_connected.png")
|
||||||
else:
|
else:
|
||||||
text = _("Not connected")
|
text = _("Not connected")
|
||||||
|
|
Loading…
Reference in New Issue