mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-10 03:42:05 +02:00
Merge pull request #1866
bb37234
Transfer: disable long payment ids by default (selsta)
This commit is contained in:
commit
442320bc36
1
main.qml
1
main.qml
@ -1056,6 +1056,7 @@ ApplicationWindow {
|
|||||||
property bool hideBalance: false
|
property bool hideBalance: false
|
||||||
property bool lockOnUserInActivity: true
|
property bool lockOnUserInActivity: true
|
||||||
property int lockOnUserInActivityInterval: 10 // minutes
|
property int lockOnUserInActivityInterval: 10 // minutes
|
||||||
|
property bool showPid: false
|
||||||
}
|
}
|
||||||
|
|
||||||
// Information dialog
|
// Information dialog
|
||||||
|
@ -71,6 +71,7 @@ Rectangle {
|
|||||||
|
|
||||||
LineEditMulti {
|
LineEditMulti {
|
||||||
id: paymentIdLine
|
id: paymentIdLine
|
||||||
|
visible: appWindow.persistentSettings.showPid
|
||||||
Layout.fillWidth: true;
|
Layout.fillWidth: true;
|
||||||
labelText: qsTr("Payment ID <font size='2'>(Optional)</font>") + translationManager.emptyString
|
labelText: qsTr("Payment ID <font size='2'>(Optional)</font>") + translationManager.emptyString
|
||||||
placeholderText: qsTr("Paste 64 hexadecimal characters") + translationManager.emptyString
|
placeholderText: qsTr("Paste 64 hexadecimal characters") + translationManager.emptyString
|
||||||
|
@ -287,6 +287,8 @@ Rectangle {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
|
visible: appWindow.persistentSettings.showPid || paymentIdCheckbox.checked
|
||||||
|
|
||||||
CheckBox {
|
CheckBox {
|
||||||
id: paymentIdCheckbox
|
id: paymentIdCheckbox
|
||||||
border: false
|
border: false
|
||||||
|
@ -78,6 +78,16 @@ Rectangle {
|
|||||||
text: qsTr("Hide balance") + translationManager.emptyString
|
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 {
|
MoneroComponents.CheckBox {
|
||||||
visible: !isMobile
|
visible: !isMobile
|
||||||
id: userInActivityCheckbox
|
id: userInActivityCheckbox
|
||||||
|
Loading…
Reference in New Issue
Block a user