electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 10611876ee6204ce0f18c2b267a300d132b44805
parent 618b008c5429170852a31f606a39dcb854fb1444
Author: ThomasV <thomasv@electrum.org>
Date:   Tue, 23 Feb 2021 10:58:21 +0100

qt: update swap button together with can_send

Diffstat:
Melectrum/gui/qt/channels_list.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/electrum/gui/qt/channels_list.py b/electrum/gui/qt/channels_list.py @@ -235,7 +235,6 @@ class ChannelsList(MyTreeView): self._update_chan_frozen_bg(chan=chan, items=items) if wallet.lnworker: self.update_can_send(wallet.lnworker) - self.update_swap_button(wallet.lnworker) @QtCore.pyqtSlot() def on_gossip_db(self): @@ -290,6 +289,7 @@ class ChannelsList(MyTreeView): + _('can receive') + ' ' + self.parent.format_amount(lnworker.num_sats_can_receive())\ + ' ' + self.parent.base_unit() self.can_send_label.setText(msg) + self.update_swap_button(lnworker) def update_swap_button(self, lnworker: LNWallet): if lnworker.num_sats_can_send() or lnworker.num_sats_can_receive():