diff --git a/main.qml b/main.qml index 1ee60881..228d7bd0 100644 --- a/main.qml +++ b/main.qml @@ -1056,6 +1056,7 @@ ApplicationWindow { property bool hideBalance: false property bool lockOnUserInActivity: true property int lockOnUserInActivityInterval: 10 // minutes + property bool showPid: false } // Information dialog diff --git a/pages/AddressBook.qml b/pages/AddressBook.qml index 36de37d5..7399c786 100644 --- a/pages/AddressBook.qml +++ b/pages/AddressBook.qml @@ -71,6 +71,7 @@ Rectangle { LineEditMulti { id: paymentIdLine + visible: appWindow.persistentSettings.showPid Layout.fillWidth: true; labelText: qsTr("Payment ID (Optional)") + translationManager.emptyString placeholderText: qsTr("Paste 64 hexadecimal characters") + translationManager.emptyString diff --git a/pages/Transfer.qml b/pages/Transfer.qml index a36e22e6..c57ff2a8 100644 --- a/pages/Transfer.qml +++ b/pages/Transfer.qml @@ -287,6 +287,8 @@ Rectangle { } ColumnLayout { + visible: appWindow.persistentSettings.showPid || paymentIdCheckbox.checked + CheckBox { id: paymentIdCheckbox border: false diff --git a/pages/settings/SettingsLayout.qml b/pages/settings/SettingsLayout.qml index 1ae870e3..83f63845 100644 --- a/pages/settings/SettingsLayout.qml +++ b/pages/settings/SettingsLayout.qml @@ -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