mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-25 20:15:54 +00:00
added onPageCompleted
This commit is contained in:
parent
53d3bc4f06
commit
9cc92bf9d6
2 changed files with 18 additions and 8 deletions
|
@ -44,6 +44,11 @@ Rectangle {
|
||||||
onCurrentViewChanged: {
|
onCurrentViewChanged: {
|
||||||
if (currentView) {
|
if (currentView) {
|
||||||
stackView.replace(currentView)
|
stackView.replace(currentView)
|
||||||
|
|
||||||
|
// Component.onCompleted is called before wallet is initilized
|
||||||
|
if (typeof currentView.onPageCompleted === "function") {
|
||||||
|
currentView.onPageCompleted();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -49,6 +49,7 @@ Rectangle {
|
||||||
addressLine.text = appWindow.currentWallet.address
|
addressLine.text = appWindow.currentWallet.address
|
||||||
integratedAddressLine.text = appWindow.currentWallet.integratedAddress(payment_id)
|
integratedAddressLine.text = appWindow.currentWallet.integratedAddress(payment_id)
|
||||||
}
|
}
|
||||||
|
|
||||||
paymentIdLine.text = payment_id
|
paymentIdLine.text = payment_id
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -180,9 +181,13 @@ Rectangle {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Component.onCompleted: {
|
function onPageCompleted() {
|
||||||
console.log("Receive page loaded");
|
console.log("Receive page loaded");
|
||||||
|
|
||||||
|
if(addressLine.text.length == 0) {
|
||||||
updatePaymentId()
|
updatePaymentId()
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue