mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-17 08:17:59 +00:00
parent
fdc71d2b18
commit
08ceb5eba0
1 changed files with 7 additions and 60 deletions
|
@ -48,10 +48,6 @@ Rectangle {
|
||||||
function initSettings() {
|
function initSettings() {
|
||||||
//runs on every page load
|
//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
|
// Daemon settings
|
||||||
daemonAddress = persistentSettings.daemon_address.split(":");
|
daemonAddress = persistentSettings.daemon_address.split(":");
|
||||||
console.log("address: " + persistentSettings.daemon_address)
|
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 {
|
StandardButton {
|
||||||
id: showSeedButton
|
id: showSeedButton
|
||||||
shadowReleasedColor: "#FF4304"
|
shadowReleasedColor: "#FF4304"
|
||||||
|
@ -449,8 +391,13 @@ Rectangle {
|
||||||
|
|
||||||
onAccepted: {
|
onAccepted: {
|
||||||
if(appWindow.password === settingsPasswordDialog.password){
|
if(appWindow.password === settingsPasswordDialog.password){
|
||||||
memoTextInput.text = currentWallet.seed
|
informationPopup.title = qsTr("Wallet mnemonic seed") + translationManager.emptyString;
|
||||||
showSeedButton.enabled = false
|
informationPopup.text = currentWallet.seed
|
||||||
|
informationPopup.open()
|
||||||
|
informationPopup.onCloseCallback = function() {
|
||||||
|
informationPopup.text = ""
|
||||||
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
informationPopup.title = qsTr("Error") + translationManager.emptyString;
|
informationPopup.title = qsTr("Error") + translationManager.emptyString;
|
||||||
informationPopup.text = qsTr("Wrong password");
|
informationPopup.text = qsTr("Wrong password");
|
||||||
|
|
Loading…
Reference in a new issue