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
|
hoverEnabled: true
|
||||||
cursorShape: Qt.PointingHandCursor
|
cursorShape: Qt.PointingHandCursor
|
||||||
onClicked: {
|
onClicked: {
|
||||||
|
middlePanel.addressBookView.clearFields();
|
||||||
|
middlePanel.transferView.clearFields();
|
||||||
|
middlePanel.receiveView.clearFields();
|
||||||
appWindow.showWizard();
|
appWindow.showWizard();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -109,9 +109,7 @@ Rectangle {
|
||||||
informationPopup.onCloseCallback = null
|
informationPopup.onCloseCallback = null
|
||||||
informationPopup.open();
|
informationPopup.open();
|
||||||
} else {
|
} else {
|
||||||
addressLine.text = "";
|
clearFields();
|
||||||
paymentIdLine.text = "";
|
|
||||||
descriptionLine.text = "";
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -183,4 +181,9 @@ Rectangle {
|
||||||
cameraUi.qrcode_decoded.disconnect(updateFromQrCode)
|
cameraUi.qrcode_decoded.disconnect(updateFromQrCode)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function clearFields() {
|
||||||
|
addressLine.text = "";
|
||||||
|
paymentIdLine.text = "";
|
||||||
|
descriptionLine.text = "";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -731,6 +731,10 @@ Rectangle {
|
||||||
trackingEnabled.checked = false
|
trackingEnabled.checked = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function clearFields() {
|
||||||
|
amountToReceiveLine.text = "";
|
||||||
|
}
|
||||||
|
|
||||||
function onPageClosed() {
|
function onPageClosed() {
|
||||||
timer.running = false
|
timer.running = false
|
||||||
trackingEnabled.checked = false
|
trackingEnabled.checked = false
|
||||||
|
|
|
@ -108,6 +108,9 @@ Rectangle {
|
||||||
small: true
|
small: true
|
||||||
text: qsTr("Close wallet") + translationManager.emptyString
|
text: qsTr("Close wallet") + translationManager.emptyString
|
||||||
onClicked: {
|
onClicked: {
|
||||||
|
middlePanel.addressBookView.clearFields();
|
||||||
|
middlePanel.transferView.clearFields();
|
||||||
|
middlePanel.receiveView.clearFields();
|
||||||
appWindow.showWizard();
|
appWindow.showWizard();
|
||||||
}
|
}
|
||||||
width: 135 * scaleRatio
|
width: 135 * scaleRatio
|
||||||
|
|
Loading…
Reference in a new issue