1
0

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

This commit is contained in:
Sander van Grieken
2023-01-06 13:13:03 +01:00
parent a1716df115
commit 20eacc37e1

View File

@@ -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