mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-30 00:41:31 +00:00
confirmation dialog before force closure
This commit is contained in:
parent
dbcd5fe59d
commit
290a1c61a8
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue