Browse Source

channels_list: do not add extra whitespaces when displaying amounts in HTLCs

patch-4
ThomasV 3 years ago
parent
commit
035c877813
  1. 2
      electrum/gui/qt/channels_list.py

2
electrum/gui/qt/channels_list.py

@ -87,7 +87,7 @@ class ChannelsList(MyTreeView):
bal_other = chan.balance(other)//1000
bal_minus_htlcs_other = chan.balance_minus_outgoing_htlcs(other)//1000
if bal_other != bal_minus_htlcs_other:
label += ' (+' + self.parent.format_amount(bal_other - bal_minus_htlcs_other, whitespaces=True) + ')'
label += ' (+' + self.parent.format_amount(bal_other - bal_minus_htlcs_other, whitespaces=False) + ')'
else:
assert isinstance(chan, ChannelBackup)
label = ''

Loading…
Cancel
Save