From bb3723414269270c0802326a79f966fb77f43bc0 Mon Sep 17 00:00:00 2001 From: selsta Date: Thu, 27 Dec 2018 19:12:40 +0100 Subject: [PATCH] Transfer: disable long payment ids by default --- main.qml | 1 + pages/AddressBook.qml | 1 + pages/Transfer.qml | 2 ++ pages/settings/SettingsLayout.qml | 10 ++++++++++ 4 files changed, 14 insertions(+) diff --git a/main.qml b/main.qml index d23cb5e5..50841bf7 100644 --- a/main.qml +++ b/main.qml @@ -1049,6 +1049,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 596210cb..d02f770c 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 0a1693ef..d90fcfdd 100644 --- a/pages/Transfer.qml +++ b/pages/Transfer.qml @@ -293,6 +293,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 6914a438..f1621bf5 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