mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 09:21:39 +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,6 +68,7 @@ class ChannelsList(MyTreeView):
|
||||||
def task():
|
def task():
|
||||||
coro = lnworker.force_close_channel(channel_id)
|
coro = lnworker.force_close_channel(channel_id)
|
||||||
return network.run_from_another_thread(coro)
|
return network.run_from_another_thread(coro)
|
||||||
|
if self.parent.question('Force-close channel?\nClaiming funds will not be immediately available.'):
|
||||||
WaitingDialog(self, 'please wait..', task, on_success, on_failure)
|
WaitingDialog(self, 'please wait..', task, on_success, on_failure)
|
||||||
menu.addAction(_("Details..."), lambda: self.details(channel_id))
|
menu.addAction(_("Details..."), lambda: self.details(channel_id))
|
||||||
menu.addAction(_("Close channel"), close)
|
menu.addAction(_("Close channel"), close)
|
||||||
|
|
Loading…
Add table
Reference in a new issue