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:
parent
71c23613b5
commit
92a01c67ba
@ -1592,11 +1592,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;
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user