Browse Source

do not propose rebalance between channels to the same trampoline

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

2
electrum/gui/qt/channels_list.py

@ -209,7 +209,7 @@ class ChannelsList(MyTreeView):
channel_id2 = idx2.sibling(idx2.row(), self.Columns.NODE_ALIAS).data(ROLE_CHANNEL_ID)
chan1 = self.lnworker.channels.get(channel_id1)
chan2 = self.lnworker.channels.get(channel_id2)
if chan1 and chan2:
if chan1 and chan2 and (self.lnworker.channel_db or chan1.node_id != chan2.node_id):
menu.addAction(_("Rebalance"), lambda: self.parent.rebalance_dialog(chan1, chan2))
menu.exec_(self.viewport().mapToGlobal(position))
return

Loading…
Cancel
Save