From a1f69fef97d820f7bcdfd6af5c7e7a1b1b704786 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Wed, 28 Jul 2021 15:22:07 +0200 Subject: [PATCH] qt channels list: align "can send", "can recv" cols based on amounts --- electrum/gui/qt/channels_list.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/electrum/gui/qt/channels_list.py b/electrum/gui/qt/channels_list.py index 83367b446..0d423f445 100644 --- a/electrum/gui/qt/channels_list.py +++ b/electrum/gui/qt/channels_list.py @@ -83,12 +83,12 @@ class ChannelsList(MyTreeView): for subject in (REMOTE, LOCAL): if isinstance(chan, Channel): can_send = chan.available_to_spend(subject) / 1000 - label = self.parent.format_amount(can_send) + label = self.parent.format_amount(can_send, whitespaces=True) other = subject.inverted() 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) + ')' + label += ' (+' + self.parent.format_amount(bal_other - bal_minus_htlcs_other, whitespaces=True) + ')' else: assert isinstance(chan, ChannelBackup) label = ''