tqt: update swap button together with can_send - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 10611876ee6204ce0f18c2b267a300d132b44805 DIR parent 618b008c5429170852a31f606a39dcb854fb1444 HTML Author: ThomasV <thomasv@electrum.org> Date: Tue, 23 Feb 2021 10:58:21 +0100 qt: update swap button together with can_send Diffstat: M electrum/gui/qt/channels_list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/electrum/gui/qt/channels_list.py b/electrum/gui/qt/channels_list.py t@@ -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): t@@ -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():