File tree Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -208,6 +208,14 @@ Page {
208
208
}
209
209
}
210
210
211
+ function clear () {
212
+ clearRequest .visible = false
213
+ title .text = qsTr (" Request a payment" )
214
+ address .text = " "
215
+ qrImage .code = " "
216
+ continueButton .text = qsTr (" Create bitcoin address" )
217
+ }
218
+
211
219
ContinueButton {
212
220
id: clearRequest
213
221
Layout .fillWidth : true
@@ -221,11 +229,14 @@ Page {
221
229
backgroundPressedColor: " transparent"
222
230
text: qsTr (" Clear" )
223
231
onClicked: {
224
- clearRequest .visible = false
225
- title .text = qsTr (" Request a payment" )
226
- address .text = " "
227
- qrImage .code = " "
228
- continueButton .text = qsTr (" Create bitcoin address" )
232
+ columnLayout .clear ()
233
+ }
234
+ }
235
+
236
+ Connections {
237
+ target: walletController
238
+ function onSelectedWalletChanged () {
239
+ columnLayout .clear ()
229
240
}
230
241
}
231
242
}
You can’t perform that action at this time.
0 commit comments