1
0

wallet: add struct PiechartBalance

This commit is contained in:
SomberNight
2025-06-29 22:02:09 +00:00
parent 405197b9ae
commit ba670cc9dc
7 changed files with 59 additions and 27 deletions

View File

@@ -212,7 +212,7 @@ class ElectrumGui(BaseElectrumGui, EventListener):
if not self.wallet.is_up_to_date():
msg = _("Synchronizing...")
else:
balance = sum(self.wallet.get_balances_for_piechart())
balance = self.wallet.get_balances_for_piechart().total()
msg = _("Balance") + ': ' + self.config.format_amount_and_units(balance)
else:
msg = _("Not connected")