messageTray: Don't destroy the notification when clicking on the close button

Clicking on the close button should simply hide the notification.

https://bugzilla.gnome.org/show_bug.cgi?id=682237
This commit is contained in:
Jasper St. Pierre 2012-09-19 00:40:53 -03:00 committed by Florian Müllner
parent 71c23613b5
commit 92a01c67ba

View File

@ -1592,11 +1592,7 @@ const MessageTray = new Lang.Class({
_onCloseClicked: function() { _onCloseClicked: function() {
if (this._notificationState == State.SHOWN) { if (this._notificationState == State.SHOWN) {
this._notificationClosed = true; this._notificationClosed = true;
this._notification.emit('done-displaying'); this._updateState();
if (!this._notification.resident)
this._notification.destroy();
this._notificationClosed = false; this._notificationClosed = false;
} }
}, },