You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var success =lib.importAndSetPrivKey(txPrivKey.text)
65
+
if(success){
66
+
importedDetails.visible=true
67
+
restoreColumn.visible=false
68
+
newKey.visible=false
69
+
wizardRoot.height=120
70
+
}
71
+
}
72
+
}
73
+
Text {
74
+
id: detailLabel
75
+
font.pointSize:12
76
+
anchors.topMargin:10
77
+
}
78
+
}
55
79
}
56
-
}
57
-
Row {
58
-
spacing:10
59
-
Button {
60
-
id: actionButton
61
-
text:"Restore"
62
-
enabled:false
63
-
onClicked: {
64
-
var success =eth.importAndSetPrivKey(txPrivKey.text)
65
-
if(success){
66
-
importedDetails.visible=true
67
-
restoreColumn.visible=false
68
-
newKey.visible=false
69
-
wizardRoot.height=120
70
-
}
71
-
}
80
+
Column {
81
+
id: importedDetails
82
+
visible:false
83
+
Text {
84
+
text:"<b>Your account has been imported. Please close the application and restart it again to let the changes take effect.</b>"
85
+
wrapMode:Text.WordWrap
86
+
width:460
87
+
}
72
88
}
73
-
Text {
74
-
id: detailLabel
75
-
font.pointSize:12
76
-
anchors.topMargin:10
89
+
Column {
90
+
spacing:5
91
+
id: newDetailsColumn
92
+
visible:false
93
+
Text {
94
+
font.pointSize:14
95
+
text:"Your account details"
96
+
}
97
+
Label {
98
+
text:"Address"
99
+
}
100
+
TextField {
101
+
id: addressInput
102
+
readOnly:true
103
+
width:480
104
+
}
105
+
Label {
106
+
text:"Private key"
107
+
}
108
+
TextField {
109
+
id: privkeyInput
110
+
readOnly:true
111
+
width:480
112
+
}
113
+
Label {
114
+
text:"Mnemonic words"
115
+
}
116
+
TextField {
117
+
id: mnemonicInput
118
+
readOnly:true
119
+
width:480
120
+
}
121
+
Label {
122
+
text:"<b>A new account has been created. Please take the time to write down the <i>24 words</i>. You can use those to restore your account at a later date.</b>"
123
+
wrapMode:Text.WordWrap
124
+
width:480
125
+
}
126
+
Label {
127
+
text:"Please restart the application once you have completed the steps above."
128
+
wrapMode:Text.WordWrap
129
+
width:480
130
+
}
77
131
}
78
-
}
79
-
}
80
-
Column {
81
-
id: importedDetails
82
-
visible:false
83
-
Text {
84
-
text:"<b>Your account has been imported. Please close the application and restart it again to let the changes take effect.</b>"
85
-
wrapMode:Text.WordWrap
86
-
width:460
87
-
}
88
-
}
89
-
Column {
90
-
spacing:5
91
-
id: newDetailsColumn
92
-
visible:false
93
-
Text {
94
-
font.pointSize:14
95
-
text:"Your account details"
96
-
}
97
-
Label {
98
-
text:"Address"
99
-
}
100
-
TextField {
101
-
id: addressInput
102
-
readOnly:true
103
-
width:480
104
-
}
105
-
Label {
106
-
text:"Private key"
107
-
}
108
-
TextField {
109
-
id: privkeyInput
110
-
readOnly:true
111
-
width:480
112
-
}
113
-
Label {
114
-
text:"Mnemonic words"
115
-
}
116
-
TextField {
117
-
id: mnemonicInput
118
-
readOnly:true
119
-
width:480
120
-
}
121
-
Label {
122
-
text:"<b>A new account has been created. Please take the time to write down the <i>24 words</i>. You can use those to restore your account at a later date.</b>"
123
-
wrapMode:Text.WordWrap
124
-
width:480
125
-
}
126
-
Label {
127
-
text:"Please restart the application once you have completed the steps above."
0 commit comments