confirmation dialog before force closure

This commit is contained in:
ThomasV 2019-01-23 13:47:29 +01:00
parent dbcd5fe59d
commit 290a1c61a8

View file

@ -68,7 +68,8 @@ class ChannelsList(MyTreeView):
def task():
coro = lnworker.force_close_channel(channel_id)
return network.run_from_another_thread(coro)
WaitingDialog(self, 'please wait..', task, on_success, on_failure)
if self.parent.question('Force-close channel?\nClaiming funds will not be immediately available.'):
WaitingDialog(self, 'please wait..', task, on_success, on_failure)
menu.addAction(_("Details..."), lambda: self.details(channel_id))
menu.addAction(_("Close channel"), close)
menu.addAction(_("Force-close channel"), force_close)