diff options
author | Dominik Holland <dominik.holland@pelagicore.com> | 2016-10-13 09:12:53 +0200 |
---|---|---|
committer | Dominik Holland <dominik.holland@pelagicore.com> | 2016-10-13 09:12:26 +0000 |
commit | 78e4a5a3a83f8156bd26341879c316823036d782 (patch) | |
tree | 08219dff15eac4ca7ecc48e41848a3e244261a8a | |
parent | da93c8a0517a1819dd42e0433d1cdec4c1760c6b (diff) | |
download | neptune-ui-78e4a5a3a83f8156bd26341879c316823036d782.tar.gz |
LaunchController: Make sure to push Surfaces only once to the stack
Change-Id: I972d84f0280db01aee8a4f6f1df86b13ebce3114
Reviewed-by: Nedim Hadzic <nedim.hadzic@pelagicore.com>
-rw-r--r-- | sysui/LaunchController.qml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sysui/LaunchController.qml b/sysui/LaunchController.qml index 15980f5..76a4659 100644 --- a/sysui/LaunchController.qml +++ b/sysui/LaunchController.qml @@ -175,6 +175,12 @@ StackView { target: ApplicationManagerInterface onApplicationSurfaceReady: { + //Make sure to push the items only once + for (var i = 1; i < root.depth; ++i) { + if (root.get(i) === item) + return + } + if (root.busy) root.completeTransition() |