Clear text fields up switching wallets

This commit is contained in:
mmbyday 2018-12-18 11:06:29 -08:00
parent 7c0a557e62
commit 09201b17fb
4 changed files with 16 additions and 3 deletions

View file

@ -171,6 +171,9 @@ Rectangle {
hoverEnabled: true
cursorShape: Qt.PointingHandCursor
onClicked: {
middlePanel.addressBookView.clearFields();
middlePanel.transferView.clearFields();
middlePanel.receiveView.clearFields();
appWindow.showWizard();
}
}

View file

@ -109,9 +109,7 @@ Rectangle {
informationPopup.onCloseCallback = null
informationPopup.open();
} else {
addressLine.text = "";
paymentIdLine.text = "";
descriptionLine.text = "";
clearFields();
}
}
}
@ -183,4 +181,9 @@ Rectangle {
cameraUi.qrcode_decoded.disconnect(updateFromQrCode)
}
function clearFields() {
addressLine.text = "";
paymentIdLine.text = "";
descriptionLine.text = "";
}
}

View file

@ -731,6 +731,10 @@ Rectangle {
trackingEnabled.checked = false
}
function clearFields() {
amountToReceiveLine.text = "";
}
function onPageClosed() {
timer.running = false
trackingEnabled.checked = false

View file

@ -108,6 +108,9 @@ Rectangle {
small: true
text: qsTr("Close wallet") + translationManager.emptyString
onClicked: {
middlePanel.addressBookView.clearFields();
middlePanel.transferView.clearFields();
middlePanel.receiveView.clearFields();
appWindow.showWizard();
}
width: 135 * scaleRatio