mirror of
https://github.com/sparrowwallet/drongo.git
synced 2024-12-25 17:46:44 +00:00
allow short wallet display name retrieval
This commit is contained in:
parent
61317f15ac
commit
9618c73c50
1 changed files with 4 additions and 4 deletions
|
@ -73,7 +73,7 @@ public class Wallet extends Persistable implements Comparable<Wallet> {
|
|||
return childWallets.isEmpty() ? name : name + "-" + (label != null && !label.isEmpty() ? label : getAutomaticName());
|
||||
}
|
||||
|
||||
return getMasterWallet().getName() + "-" + getDisplayName(this);
|
||||
return getMasterWallet().getName() + "-" + getDisplayName();
|
||||
}
|
||||
|
||||
public String getFullDisplayName() {
|
||||
|
@ -81,11 +81,11 @@ public class Wallet extends Persistable implements Comparable<Wallet> {
|
|||
return childWallets.isEmpty() ? name : name + " - " + (label != null && !label.isEmpty() ? label : getAutomaticName());
|
||||
}
|
||||
|
||||
return getMasterWallet().getName() + " - " + getDisplayName(this);
|
||||
return getMasterWallet().getName() + " - " + getDisplayName();
|
||||
}
|
||||
|
||||
private String getDisplayName(Wallet wallet) {
|
||||
return wallet.label != null && !wallet.label.isEmpty() ? wallet.label : wallet.name;
|
||||
public String getDisplayName() {
|
||||
return label != null && !label.isEmpty() ? label : (isMasterWallet() ? getAutomaticName() : name);
|
||||
}
|
||||
|
||||
public String getAutomaticName() {
|
||||
|
|
Loading…
Reference in a new issue