Browse Source

qml: allow delete wallet if has channels not in REDEEMED state but is channelbackup

master
Sander van Grieken 3 years ago
parent
commit
20eacc37e1
  1. 2
      electrum/gui/qml/qedaemon.py

2
electrum/gui/qml/qedaemon.py

@ -199,7 +199,7 @@ class QEDaemon(AuthMixin, QObject):
def checkThenDeleteWallet(self, wallet, confirm_requests=False, confirm_balance=False):
if wallet.wallet.lnworker:
lnchannels = wallet.wallet.lnworker.get_channel_objects()
if any([channel.get_state() != ChannelState.REDEEMED for channel in lnchannels.values()]):
if any([channel.get_state() != ChannelState.REDEEMED and not channel.is_backup() for channel in lnchannels.values()]):
self.walletDeleteError.emit('unclosed_channels', _('There are still channels that are not fully closed'))
return

Loading…
Cancel
Save