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:
commit
7cf94734be
@ -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 New Issue
Block a user