messageTray: Set the state to SHOWN when the notification is updated
If the notification is updated while SHOWING, we'll overwrite the tween updating it to the new 'y' position, but forget to update the state to SHOWN at the end of our transition. Make sure to always set the state to SHOWN at the end. https://bugzilla.gnome.org/show_bug.cgi?id=704844
This commit is contained in:
@ -2790,7 +2790,12 @@ const MessageTray = new Lang.Class({
|
||||
{ y: expandedY,
|
||||
opacity: 255,
|
||||
time: ANIMATION_TIME,
|
||||
transition: 'easeOutQuad'
|
||||
transition: 'easeOutQuad',
|
||||
// HACK: Drive the state machine here better,
|
||||
// instead of overwriting tweens
|
||||
onComplete: Lang.bind(this, function() {
|
||||
this._notificationState = State.SHOWN;
|
||||
}),
|
||||
});
|
||||
}
|
||||
},
|
||||
|
Reference in New Issue
Block a user