mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-04 23:51:10 +02:00
Merge 5393f4688c
into 0a9d61986c
This commit is contained in:
commit
f1be91898d
8
main.qml
8
main.qml
@ -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;
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user