Hi CDW
I also use onStatusChanged with no problems.
Is it possible that the event is being called earlier than you expect?
(e.g. during app startup?)
I would put a console.log in the onStatusChanged handler - outside the if:
onStatusChanged: {
console.log("Page XXX: onStatusChanged: status: " + status);
if (status==PageStatus.Activating){
...more code here...
}
}
Run the app, activate the page, then search the application output for
the text you have in the console.log()
Chris
Zitat von "Chris Walker" <cdw_noki...@the-walker-household.co.uk>:
In the past (Harmattan code), I would have done this sort of stuff :-
onStatusChanged: {
if (status==PageStatus.Activating) {
but there is no 'onStatusChanged' option now. So what do I use now?
I've looked here -
https://sailfishos.org/sailfish-silica/qml-sailfishsilica-page.html but
it doesn't mention that status directly.
Any help appreciated.
_______________________________________________
SailfishOS.org Devel mailing list
_______________________________________________
SailfishOS.org Devel mailing list