diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index c8fc9f4b2..25fc8a66f 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -1589,11 +1589,7 @@ const MessageTray = new Lang.Class({ _onCloseClicked: function() { if (this._notificationState == State.SHOWN) { this._notificationClosed = true; - this._notification.emit('done-displaying'); - - if (!this._notification.resident) - this._notification.destroy(); - + this._updateState(); this._notificationClosed = false; } },