switcherPopup: Avoid unnecessary animation
Ever since commit 28bb0c1fb2
, the popup's actual visibility has been
controlled by its :opacity property, not :visible.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/654
This commit is contained in:
parent
0f178c3b3d
commit
12ec5d1cbe
@ -283,7 +283,7 @@ var SwitcherPopup = GObject.registerClass({
|
|||||||
|
|
||||||
fadeAndDestroy() {
|
fadeAndDestroy() {
|
||||||
this._popModal();
|
this._popModal();
|
||||||
if (this.visible) {
|
if (this.opacity > 0) {
|
||||||
Tweener.addTween(this,
|
Tweener.addTween(this,
|
||||||
{ opacity: 0,
|
{ opacity: 0,
|
||||||
time: POPUP_FADE_OUT_TIME / 1000,
|
time: POPUP_FADE_OUT_TIME / 1000,
|
||||||
|
Loading…
Reference in New Issue
Block a user