tkivy: fix fiat balance str if there are channels - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 67a5f2e09ac8d4fde67dfdd1df987a57aea5b906 DIR parent bf2c99ad8999257a10733c5c7f0c712b432ce865 HTML Author: SomberNight <somber.night@protonmail.com> Date: Wed, 15 Jul 2020 23:48:45 +0200 kivy: fix fiat balance str if there are channels btc and fiat balance was not consistent Diffstat: M electrum/gui/kivy/main_window.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- DIR diff --git a/electrum/gui/kivy/main_window.py b/electrum/gui/kivy/main_window.py t@@ -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: