mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-16 15:58:11 +00:00
PasswordDialog: label improvements
This commit is contained in:
parent
cfec9dde96
commit
d2e7358db7
1 changed files with 7 additions and 4 deletions
|
@ -139,10 +139,13 @@ Item {
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
text: {
|
text: {
|
||||||
|
if (newPasswordDialogMode) {
|
||||||
|
return qsTr("Please enter new wallet password") + translationManager.emptyString;
|
||||||
|
} else {
|
||||||
var device = passwordDialogMode ? qsTr("wallet password") : qsTr("wallet device passphrase");
|
var device = passwordDialogMode ? qsTr("wallet password") : qsTr("wallet device passphrase");
|
||||||
(root.walletName.length > 0 ? qsTr("Please enter %1 for: ").arg(device) + root.walletName : qsTr("Please enter %1").arg(device)) + translationManager.emptyString;
|
return (root.walletName.length > 0 ? qsTr("Please enter %1 for: ").arg(device) + root.walletName : qsTr("Please enter %1").arg(device)) + translationManager.emptyString;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
visible: !newPasswordDialogMode
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
font.pixelSize: 16
|
font.pixelSize: 16
|
||||||
|
@ -284,7 +287,7 @@ Item {
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
visible: !passwordDialogMode
|
visible: !passwordDialogMode
|
||||||
text: qsTr("Please confirm new password") + translationManager.emptyString
|
text: newPasswordDialogMode ? qsTr("Please confirm new password") : qsTr("Please confirm wallet device passphrase") + translationManager.emptyString
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
font.pixelSize: 16
|
font.pixelSize: 16
|
||||||
|
|
Loading…
Reference in a new issue