This commit is contained in:
rating89us 2024-11-25 23:22:59 +00:00 committed by GitHub
commit f1be91898d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 15 additions and 2 deletions

View File

@ -1802,7 +1802,13 @@ ApplicationWindow {
currentAccountIndex: currentWallet ? currentWallet.currentSubaddressAccount : 0
currentAccountLabel: {
if (currentWallet) {
return currentWallet.getSubaddressLabel(currentWallet.currentSubaddressAccount, 0);
var accountLabel = currentWallet.getSubaddressLabel(currentWallet.currentSubaddressAccount, 0);
if (accountLabel === "Primary account" && currentWallet.currentSubaddressAccount == 0) {
//add translation
return qsTr("Primary account") + translationManager.emptyString;
} else {
return accountLabel;
}
}
return qsTr("Primary account") + translationManager.emptyString;
}

View File

@ -281,7 +281,14 @@ Rectangle {
anchors.left: idLabel.right
anchors.leftMargin: 6
fontSize: 16
text: label
text: {
if (label === "Primary account" && index === 0) {
//add translation
return qsTr("Primary account") + translationManager.emptyString;
} else {
return label;
}
}
elide: Text.ElideRight
textWidth: addressLabel.x - nameLabel.x - 1
themeTransition: false