update task pseudo indexes for shortcuts

pull/2/head
Michail Vourlakos 7 years ago
parent 9d949b9387
commit 109651f2d1

@ -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; i<realIndex; i++){
if (taskIsSeparator(i)) {
pseudoIndex = pseudoIndex-1;
}
}
}
return pseudoIndex;
}
//! first available task index found after consequent internal separators in the start
function firstRealTask() {
if (hasInternalSeparator) {

@ -496,11 +496,11 @@ Item{
active: opacityN>0 && !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);
}
}

Loading…
Cancel
Save