1
mirror of https://github.com/monero-project/monero-gui synced 2024-11-29 09:05:11 +01:00

Merge pull request #1820

09201b1 Clear text fields up switching wallets (mmbyday)
This commit is contained in:
luigi1111 2018-12-20 14:28:29 -06:00
commit 7cf94734be
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010
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