improve identification of startups

--identify startups better in order to distinguish
them to those that belong to launcher and should be
shown immediately and those that dont belong in any
launcher and they shouldnt be shown
pull/1/head
Michail Vourlakos 8 years ago
parent 58cf0864ba
commit 6c183e9eed

@ -289,7 +289,7 @@ MouseArea{
//when the task is removed
property int indexUsed: index === -1 ? lastValidIndex : index
property int separatorSpace: ((parabolicManager.internalSeparatorPos !== -1 && parabolicManager.internalSeparatorPos === indexUsed-1)
|| neighbourSeparator) && !isSeparator && !showWindowAnimation.running ?
|| neighbourSeparator) && !isSeparator && !showWindowAnimation.running ?
(2+root.iconMargin/2) : 0
property real nHiddenSize: (nScale > 0) ? (mainItemContainer.spacersMaxSize * nScale) + separatorSpace : separatorSpace
@ -362,7 +362,7 @@ MouseArea{
//when the task is removed
property int indexUsed: index === -1 ? lastValidIndex : index
property int separatorSpace: ((parabolicManager.internalSeparatorPos !== -1 && parabolicManager.internalSeparatorPos === indexUsed+1)
|| neighbourSeparator) && !isSeparator && !showWindowAnimation.running ?
|| neighbourSeparator) && !isSeparator && !showWindowAnimation.running ?
(2+root.iconMargin/2) : 0
property real nHiddenSize: (nScale > 0) ? (mainItemContainer.spacersMaxSize * nScale) + separatorSpace : separatorSpace
@ -1136,10 +1136,17 @@ MouseArea{
root.publishTasksGeometries.connect(slotPublishGeometries);
root.showPreviewForTasks.connect(slotShowPreviewForTasks);
//startup without launcher
var hideStartup = ((((tasksModel.launcherPosition(mainItemContainer.launcherUrl) == -1)
&& (tasksModel.launcherPosition(mainItemContainer.launcherUrlWithIcon) == -1) )
|| !launcherIsPresent(mainItemContainer.launcherUrl))
&& mainItemContainer.isStartup);
if ( (isWindow || isStartup) && root.waitingLauncherExists(launcherUrl)) {
root.waitingLauncherRemoved.connect(slotWaitingLauncherRemoved);
visible = false;
} else if (hideStartup){
visible = false;
} else {
visible = true;
}

@ -106,10 +106,22 @@ SequentialAnimation{
var animation3 = ((!root.taskExists(mainItemContainer.launcherUrl) && mainItemContainer.isLauncher));
//startup without launcher, animation should be blocked
var hideStartup = ((((tasksModel.launcherPosition(mainItemContainer.launcherUrl) == -1)
&& (tasksModel.launcherPosition(mainItemContainer.launcherUrlWithIcon) == -1) )
|| !launcherIsPresent(mainItemContainer.launcherUrl))
&& mainItemContainer.isStartup);
if (( animation2 || animation3) && (root.durationTime !== 0)){
wrapper.tempScaleWidth = 0;
wrapper.tempScaleHeight = 0;
start();
} else if (hideStartup) {
mainItemContainer.visible = false;
wrapper.tempScaleWidth = 0;
wrapper.tempScaleHeight = 0;
wrapper.opacity = 0;
mainItemContainer.inAnimation = false;
} else {
wrapper.tempScaleWidth = 1;
wrapper.tempScaleHeight = 1;

Loading…
Cancel
Save