1
mirror of https://github.com/monero-project/monero-gui synced 2024-12-28 23:56:22 +01:00

Transfer: warn if description is a valid PID

This commit is contained in:
selsta 2019-04-16 13:25:01 +02:00
parent d2c47606ca
commit 7f1fa6bbd6
No known key found for this signature in database
GPG Key ID: 2EA0A99A8B07AE5E

View File

@ -355,9 +355,19 @@ Rectangle {
placeholderText: qsTr("Saved to local wallet history") + translationManager.emptyString
Layout.fillWidth: true
visible: descriptionCheckbox.checked
onTextChanged: {
paymentIdWarningBox.visible = walletManager.paymentIdValid(text) && !persistentSettings.showPid
}
}
}
MoneroComponents.WarningBox {
// @TODO: remove after pid removal hardfork
id: paymentIdWarningBox
text: qsTr("You can enable transfers with payment ID on the settings page.") + translationManager.emptyString;
visible: false
}
MoneroComponents.WarningBox {
id: sendButtonWarningBox
text: root.sendButtonWarning