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 c16f9ba7c4
commit 5fb355ba2d

View File

@ -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;
}
},