|
|
@ -119,6 +119,11 @@ class ChannelsList(MyTreeView): |
|
|
|
if chan.peer_state == peer_states.GOOD: |
|
|
|
menu.addAction(_("Close channel"), lambda: self.close_channel(channel_id)) |
|
|
|
menu.addAction(_("Force-close channel"), lambda: self.force_close(channel_id)) |
|
|
|
else: |
|
|
|
txid = chan.get_closing_txid() |
|
|
|
closing_tx = self.lnworker.lnwatcher.db.get_transaction(txid) |
|
|
|
if closing_tx: |
|
|
|
menu.addAction(_("View closing transaction"), lambda: self.parent.show_transaction(closing_tx)) |
|
|
|
if chan.is_redeemed(): |
|
|
|
menu.addAction(_("Remove"), lambda: self.remove_channel(channel_id)) |
|
|
|
menu.exec_(self.viewport().mapToGlobal(position)) |
|
|
|