From bdb9900d8d94f62b8714e14e151635813c7c258d Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Fri, 29 Oct 2021 13:21:53 +0200 Subject: [PATCH] improve multi account wallet name display --- src/main/java/com/sparrowwallet/drongo/wallet/Wallet.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/com/sparrowwallet/drongo/wallet/Wallet.java b/src/main/java/com/sparrowwallet/drongo/wallet/Wallet.java index 10d892c..596bf1b 100644 --- a/src/main/java/com/sparrowwallet/drongo/wallet/Wallet.java +++ b/src/main/java/com/sparrowwallet/drongo/wallet/Wallet.java @@ -75,6 +75,14 @@ public class Wallet extends Persistable implements Comparable { return getMasterWallet().getName() + "-" + name; } + public String getFullDisplayName() { + if(isMasterWallet()) { + return name; + } + + return getMasterWallet().getName() + " - " + name; + } + public String getMasterName() { if(isMasterWallet()) { return name;