mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-28 16:01:30 +00:00
kivy: fix fiat balance str if there are channels
btc and fiat balance was not consistent
This commit is contained in:
parent
bf2c99ad89
commit
67a5f2e09a
1 changed files with 3 additions and 2 deletions
|
@ -907,9 +907,10 @@ class ElectrumWindow(App):
|
|||
else:
|
||||
c, u, x = self.wallet.get_balance()
|
||||
l = int(self.wallet.lnworker.get_balance()) if self.wallet.lnworker else 0
|
||||
text = self.format_amount(c + x + u + l)
|
||||
balance_sat = c + u + x + l
|
||||
text = self.format_amount(balance_sat)
|
||||
self.balance = str(text.strip()) + ' [size=22dp]%s[/size]'% self.base_unit
|
||||
self.fiat_balance = self.fx.format_amount(c+u+x) + ' [size=22dp]%s[/size]'% self.fx.ccy
|
||||
self.fiat_balance = self.fx.format_amount(balance_sat) + ' [size=22dp]%s[/size]'% self.fx.ccy
|
||||
|
||||
def update_wallet_synchronizing_progress(self, *dt):
|
||||
if not self.wallet:
|
||||
|
|
Loading…
Add table
Reference in a new issue