mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-06 10:39:48 +00:00
qt/channels list: show error in dialog
This commit is contained in:
parent
66817d41f9
commit
f2242868fa
1 changed files with 2 additions and 3 deletions
|
@ -34,9 +34,8 @@ class ChannelsList(MyTreeWidget):
|
|||
def close():
|
||||
suc, msg = self.parent.wallet.lnworker.close_channel(channel_id)
|
||||
if not suc:
|
||||
print('channel close broadcast failed:', msg)
|
||||
assert suc # TODO show error message in dialog
|
||||
menu.addAction(_("Close channel"), close)
|
||||
self.main_window.show_error('Force-close failed:\n{}'.format(msg))
|
||||
menu.addAction(_("Force-close channel"), close)
|
||||
menu.exec_(self.viewport().mapToGlobal(position))
|
||||
|
||||
@QtCore.pyqtSlot(HTLCStateMachine)
|
||||
|
|
Loading…
Add table
Reference in a new issue