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 {
208208 }
209209 }
210210
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+
211219 ContinueButton {
212220 id: clearRequest
213221 Layout .fillWidth : true
@@ -221,11 +229,14 @@ Page {
221229 backgroundPressedColor: " transparent"
222230 text: qsTr (" Clear" )
223231 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 ()
229240 }
230241 }
231242 }
You can’t perform that action at this time.
0 commit comments