aboutsummaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorJaquee <jaquee.monero@gmail.com>2017-02-04 20:38:59 +0100
committerJaquee <jaquee.monero@gmail.com>2017-02-11 19:30:09 +0100
commit08ceb5eba08d1e09224f8c0e8c5f5f375dbf9796 (patch)
tree0f1f100807aeccf30351d3f9376147aed0b2b4f0 /pages
parentfdc71d2b187743f03e4fea27324a5074fd798634 (diff)
downloadmonzero-gui-08ceb5eba08d1e09224f8c0e8c5f5f375dbf9796.tar.gz
monzero-gui-08ceb5eba08d1e09224f8c0e8c5f5f375dbf9796.tar.xz
monzero-gui-08ceb5eba08d1e09224f8c0e8c5f5f375dbf9796.zip
settings: replace seed box with popup
requires #1709
Diffstat (limited to 'pages')
-rw-r--r--pages/Settings.qml67
1 files changed, 7 insertions, 60 deletions
diff --git a/pages/Settings.qml b/pages/Settings.qml
index de18bac7..d2e1a3b3 100644
--- a/pages/Settings.qml
+++ b/pages/Settings.qml
@@ -48,10 +48,6 @@ Rectangle {
function initSettings() {
//runs on every page load
- // Mnemonic seed setting
- memoTextInput.text = (viewOnly)? qsTr("View only wallets doesn't have a mnemonic seed") : qsTr("Click button to show seed") + translationManager.emptyString
- showSeedButton.enabled = !viewOnly
-
// Daemon settings
daemonAddress = persistentSettings.daemon_address.split(":");
console.log("address: " + persistentSettings.daemon_address)
@@ -115,60 +111,6 @@ Rectangle {
}
}
- }
-
- //! show seed
- TextArea {
- enabled: !viewOnly
- id: memoTextInput
- textMargin: 6
- wrapMode: TextEdit.WordWrap
- readOnly: true
- selectByMouse: true
- font.pixelSize: 18
- Layout.fillWidth: true
- Layout.preferredHeight: 100
- Layout.alignment: Qt.AlignHCenter
-
- text: (viewOnly)? qsTr("View only wallets doesn't have a mnemonic seed") : qsTr("Click button to show seed") + translationManager.emptyString
-
- style: TextAreaStyle {
- backgroundColor: "#FFFFFF"
- }
-
- Image {
- id : clipboardButton
- anchors.right: memoTextInput.right
- anchors.bottom: memoTextInput.bottom
- source: "qrc:///images/greyTriangle.png"
-
- Image {
- anchors.centerIn: parent
- source: "qrc:///images/copyToClipboard.png"
- }
- MouseArea {
- anchors.fill: parent
- cursorShape: Qt.PointingHandCursor
- onClicked: clipboard.setText(memoTextInput.text)
- }
- }
- }
-
-
- RowLayout {
- enabled: !viewOnly
- Layout.fillWidth: true
- Text {
- id: wordsTipText
- font.family: "Arial"
- font.pointSize: 12
- color: "#4A4646"
- Layout.fillWidth: true
- wrapMode: Text.WordWrap
- text: qsTr("This is very important to write down and keep secret. It is all you need to restore your wallet.")
- + translationManager.emptyString
- }
-
StandardButton {
id: showSeedButton
shadowReleasedColor: "#FF4304"
@@ -449,8 +391,13 @@ Rectangle {
onAccepted: {
if(appWindow.password === settingsPasswordDialog.password){
- memoTextInput.text = currentWallet.seed
- showSeedButton.enabled = false
+ informationPopup.title = qsTr("Wallet mnemonic seed") + translationManager.emptyString;
+ informationPopup.text = currentWallet.seed
+ informationPopup.open()
+ informationPopup.onCloseCallback = function() {
+ informationPopup.text = ""
+ }
+
} else {
informationPopup.title = qsTr("Error") + translationManager.emptyString;
informationPopup.text = qsTr("Wrong password");