Merge pull request #1866

bb37234 Transfer: disable long payment ids by default (selsta)
This commit is contained in:
luigi1111 2019-01-21 14:45:48 -06:00
commit 442320bc36
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010
4 changed files with 14 additions and 0 deletions

View File

@ -1056,6 +1056,7 @@ ApplicationWindow {
property bool hideBalance: false
property bool lockOnUserInActivity: true
property int lockOnUserInActivityInterval: 10 // minutes
property bool showPid: false
}
// Information dialog

View File

@ -71,6 +71,7 @@ Rectangle {
LineEditMulti {
id: paymentIdLine
visible: appWindow.persistentSettings.showPid
Layout.fillWidth: true;
labelText: qsTr("Payment ID <font size='2'>(Optional)</font>") + translationManager.emptyString
placeholderText: qsTr("Paste 64 hexadecimal characters") + translationManager.emptyString

View File

@ -287,6 +287,8 @@ Rectangle {
}
ColumnLayout {
visible: appWindow.persistentSettings.showPid || paymentIdCheckbox.checked
CheckBox {
id: paymentIdCheckbox
border: false

View File

@ -78,6 +78,16 @@ Rectangle {
text: qsTr("Hide balance") + translationManager.emptyString
}
MoneroComponents.CheckBox {
visible: !isMobile
id: showPidCheckBox
checked: persistentSettings.showPid
onClicked: {
persistentSettings.showPid = !persistentSettings.showPid
}
text: qsTr("Enable transfer with payment ID (OBSOLETE)") + translationManager.emptyString
}
MoneroComponents.CheckBox {
visible: !isMobile
id: userInActivityCheckbox