guard regeneration of lightning address

This commit is contained in:
Omar
2026-08-09 16:01:42 +02:00
parent 43ae37df20
commit 931b6fb9d2
4 changed files with 14 additions and 1 deletions
+6
View File
@@ -317,6 +317,12 @@ class CWBitcoin extends Bitcoin {
return bitcoinWallet.walletAddresses.addressPageType == SilentPaymentsAddresType.p2sp;
}
@override
bool hasSelectedLightning(Object wallet) {
final bitcoinWallet = wallet as ElectrumWallet;
return bitcoinWallet.walletAddresses.addressPageType is LightningAddressType;
}
@override
BitcoinAddressType getBitcoinAddressType(ReceivePageOption option) {
switch (option) {