reduce messages for clearing parabolic effect

pull/1/head
Michail Vourlakos 8 years ago
parent 3a0ac83c46
commit debea91ddc

@ -147,14 +147,14 @@ Item {
latteApplet.parabolicManager.clearTasksGreaterThan(0);
} else {
if (gTaskIndex > -1)
latteApplet.parabolicManager.clearTasksGreaterThan(gTaskIndex-1);
latteApplet.parabolicManager.clearTasksGreaterThan(gTaskIndex);
if (lTaskIndex > -1)
latteApplet.parabolicManager.clearTasksLowerThan(lTaskIndex+1);
latteApplet.parabolicManager.clearTasksLowerThan(lTaskIndex);
}
}
clearAppletsGreaterThan(gAppletIndex, 1, 0);
clearAppletsLowerThan(lAppletIndex, 1, 0);
clearAppletsGreaterThan(gAppletIndex+1, 1, 0);
clearAppletsLowerThan(lAppletIndex-1, 1, 0);
return {leftScale:leftScale, rightScale:rightScale};
}

@ -274,7 +274,7 @@ Item {
if (isHidden) {
parabolicManager.setHidden(-1, index);
} else {
parabolicManager.setHidden(previousIndex, -1);
parabolicManager.setHidden(index, -1);
}
}
@ -282,7 +282,7 @@ Item {
if (isSeparator) {
parabolicManager.setSeparator(-1, index);
} else {
parabolicManager.setSeparator(previousIndex, -1);
parabolicManager.setSeparator(index, -1);
}
}

@ -132,12 +132,12 @@ Item {
if (latteDock){
if (gAppletId > -1)
latteDock.parabolicManager.clearAppletsGreaterThan(gAppletId-1);
latteDock.parabolicManager.clearAppletsGreaterThan(gAppletId);
else
latteDock.parabolicManager.clearAppletsGreaterThan(latteDock.latteAppletPos);
if (lAppletId > -1)
latteDock.parabolicManager.clearAppletsLowerThan(lAppletId+1);
latteDock.parabolicManager.clearAppletsLowerThan(lAppletId);
else
latteDock.parabolicManager.clearAppletsLowerThan(latteDock.latteAppletPos);
}

Loading…
Cancel
Save