mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-23 12:09:57 +00:00
Clear text fields up switching wallets
This commit is contained in:
parent
7c0a557e62
commit
09201b17fb
4 changed files with 16 additions and 3 deletions
|
@ -171,6 +171,9 @@ Rectangle {
|
|||
hoverEnabled: true
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
onClicked: {
|
||||
middlePanel.addressBookView.clearFields();
|
||||
middlePanel.transferView.clearFields();
|
||||
middlePanel.receiveView.clearFields();
|
||||
appWindow.showWizard();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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 = "";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -731,6 +731,10 @@ Rectangle {
|
|||
trackingEnabled.checked = false
|
||||
}
|
||||
|
||||
function clearFields() {
|
||||
amountToReceiveLine.text = "";
|
||||
}
|
||||
|
||||
function onPageClosed() {
|
||||
timer.running = false
|
||||
trackingEnabled.checked = false
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue