Public bug reported: In Ubuntu.Components 1.1 this was working fine to pop everything from a PageStack except the first page:
while (pageStack.depth > 1) { pageStack.pop() } In Ubuntu.Components 1.2 this does no longer work, because it pops the first page too. My suspicion is that it is related to the animation in the header which updates the depth asynchronously. See the attached file as a standalone example to reproduce. While it works when importing 1.1, it breaks when importing 1.2 ** Affects: ubuntu-ui-toolkit (Ubuntu) Importance: Undecided Status: New ** Attachment added: "pageStack.qml" https://bugs.launchpad.net/bugs/1461729/+attachment/4409484/+files/pageStack.qml -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to ubuntu-ui-toolkit in Ubuntu. https://bugs.launchpad.net/bugs/1461729 Title: calling pageStack.pop() in a loop pops too much Status in ubuntu-ui-toolkit package in Ubuntu: New Bug description: In Ubuntu.Components 1.1 this was working fine to pop everything from a PageStack except the first page: while (pageStack.depth > 1) { pageStack.pop() } In Ubuntu.Components 1.2 this does no longer work, because it pops the first page too. My suspicion is that it is related to the animation in the header which updates the depth asynchronously. See the attached file as a standalone example to reproduce. While it works when importing 1.1, it breaks when importing 1.2 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1461729/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp