Browse Source

qt/channels list: show error in dialog

dependabot/pip/contrib/deterministic-build/ecdsa-0.13.3
SomberNight 7 years ago
committed by ThomasV
parent
commit
f2242868fa
  1. 5
      electrum/gui/qt/channels_list.py

5
electrum/gui/qt/channels_list.py

@ -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…
Cancel
Save