dash: Skip animations while the overview is hidden
If a window is closed, the list of running applications may change while the overview is hidden. Animating dash changes is pointless in this case, so update the dash without animations in that case. https://bugzilla.gnome.org/show_bug.cgi?id=636156
This commit is contained in:
parent
d33958ceee
commit
026f598c37
@ -575,9 +575,18 @@ Dash.prototype = {
|
|||||||
for (let i = 0; i < removedActors.length; i++) {
|
for (let i = 0; i < removedActors.length; i++) {
|
||||||
removedActors[i].show();
|
removedActors[i].show();
|
||||||
let item = removedActors[i]._delegate;
|
let item = removedActors[i]._delegate;
|
||||||
item.animateOutAndDestroy();
|
|
||||||
|
// Don't animate item removal when the overview is hidden
|
||||||
|
if (Main.overview.visible)
|
||||||
|
item.animateOutAndDestroy();
|
||||||
|
else
|
||||||
|
item.actor.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Don't animate item addition when the overview is hidden
|
||||||
|
if (!Main.overview.visible)
|
||||||
|
return;
|
||||||
|
|
||||||
for (let i = 0; i < addedItems.length; i++)
|
for (let i = 0; i < addedItems.length; i++)
|
||||||
addedItems[i].item.animateIn();
|
addedItems[i].item.animateIn();
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user