From 109651f2d19f6ac1ccae9def1289337125051027 Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Wed, 15 Nov 2017 23:18:14 +0200 Subject: [PATCH] update task pseudo indexes for shortcuts --- .../package/contents/ui/ParabolicManager.qml | 16 ++++++++++++++++ .../package/contents/ui/task/TaskIconItem.qml | 10 +++++----- 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/plasmoid/package/contents/ui/ParabolicManager.qml b/plasmoid/package/contents/ui/ParabolicManager.qml index 15467f318..18c2fc490 100644 --- a/plasmoid/package/contents/ui/ParabolicManager.qml +++ b/plasmoid/package/contents/ui/ParabolicManager.qml @@ -359,6 +359,22 @@ Item { } } + //! the pseudo index task after we take into account the separators before it + //! for example the third task if there is a separator before it is 1, it isnt 2 + function pseudoTaskIndex(realIndex) { + var pseudoIndex = realIndex; + + if (hasInternalSeparator) { + for (var i=0; i0 && !launcherAnimation.running asynchronous: true - property int fixedIndex: { - if (root.hasInternalSeparator && index > root.internalSeparatorPos ) { - return index; - } else { - return index+1; + property int fixedIndex:-1 + + onActiveChanged: { + if (active) { + fixedIndex = parabolicManager.pseudoTaskIndex(index+1); } }