include labels for hidden addresses in address csv export

This commit is contained in:
Craig Raw 2024-02-07 09:26:26 +02:00
parent 74a551ed01
commit 78406fd024

View file

@ -163,7 +163,7 @@ public class AddressesController extends WalletFormController implements Initial
writer.write(getDerivationPath(indexNode)); writer.write(getDerivationPath(indexNode));
Optional<Entry> optLabelEntry = getWalletForm().getNodeEntry(keyPurpose).getChildren().stream() Optional<Entry> optLabelEntry = getWalletForm().getNodeEntry(keyPurpose).getChildren().stream()
.filter(entry -> ((NodeEntry)entry).getNode().getIndex() == indexNode.getIndex()).findFirst(); .filter(entry -> ((NodeEntry)entry).getNode().getIndex() == indexNode.getIndex()).findFirst();
writer.write(optLabelEntry.isPresent() ? optLabelEntry.get().getLabel() : ""); writer.write(optLabelEntry.isPresent() ? optLabelEntry.get().getLabel() : indexNode.getLabel());
writer.endRecord(); writer.endRecord();
} }
writer.close(); writer.close();