From 10611876ee6204ce0f18c2b267a300d132b44805 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Tue, 23 Feb 2021 10:58:21 +0100 Subject: [PATCH] qt: update swap button together with can_send --- electrum/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 index 0c1bf1731..32770f724 100644 --- 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():