PasswordDialog: cancel button text is more descriptive and dynamic

This commit is contained in:
mmbyday 2018-12-30 00:44:52 -08:00
parent 97de72b27d
commit 65f99c9cbc

View file

@ -191,7 +191,7 @@ Item {
MoneroComponents.StandardButton {
id: cancelButton
small: true
text: qsTr("Cancel") + translationManager.emptyString
text: root.walletName.length > 0 ? qsTr("Change wallet") + translationManager.emptyString : qsTr("Cancel") + translationManager.emptyString
KeyNavigation.tab: passwordInput
onClicked: {
root.close()