<div dir="ltr">But that activates every time when going to that page. You need a separate global boolean to set if wanted that to be done only one time. We have the same problem on Unofficialtogether app which has the timer solution.<div>
<a href="https://github.com/mike7b4/unofficialtogether/blob/master/qml/pages/WebView.qml">https://github.com/mike7b4/unofficialtogether/blob/master/qml/pages/WebView.qml</a><br></div><div><br></div><div><br></div><div>-Samuli</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">2014/1/20 Tobi D. <span dir="ltr"><<a href="mailto:schlaraffenland@hotmail.com" target="_blank">schlaraffenland@hotmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div><div dir="ltr">Thank you Andrey! That's exactly what I was looking for.<br><br>Best regards,<br>Tobi<br><br><div>> Date: Mon, 20 Jan 2014 13:38:45 +0600<br>> From: <a href="mailto:coderusinbox@gmail.com" target="_blank">coderusinbox@gmail.com</a><br>
> To: <a href="mailto:devel@lists.sailfishos.org" target="_blank">devel@lists.sailfishos.org</a><br>> Subject: Re: [SailfishDevel] How to attach a page to initial page?<div><div class="h5"><br>> <br>> onStatusChanged: {<br>
> if (status === PageStatus.Active && pageStack.depth === 1) {<br>> pageStack.pushAttached("SourcesPage.qml", {});<br>> }<br>> }<br>> <br>> On 20.01.2014 13:37, Kalle Vahlman wrote:<br>
> > 2014/1/17 Tobi D. <<a href="mailto:schlaraffenland@hotmail.com" target="_blank">schlaraffenland@hotmail.com</a>>:<br>> >> Hi there,<br>> >><br>> >> How can I push an attached page to my initial page on the pageStack?<br>
> >><br>> >> I'd like to have a behavior similar to the Jolla Store app. There you can<br>> >> push to the next page to get categories when you are on initial page.<br>> >><br>> >> I tried several thing to achieve this, but didn't get it work. Doing an<br>
> >> "pushAttached" to pageStack in "onComplete" of my initial page ends in error<br>> >> message that you can not push a page on stack while another push is running.<br>> > onComplete is from Component (as opposed from Item), so it doesn't<br>
> > indicate the page is "ready".<br>> ><br>> > A better place for pushing would probably be onStatusChanged(), when<br>> > the status changes to Active.<br>> ><br>> <br>> _______________________________________________<br>
> SailfishOS.org Devel mailing list<br></div></div></div>                                      </div></div>
<br>_______________________________________________<br>
SailfishOS.org Devel mailing list<br></blockquote></div><br></div>