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
c16f9ba7c4
commit
5fb355ba2d
@ -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;
|
||||
}
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user