diff --git a/js/ui/overview.js b/js/ui/overview.js index cb0ff67d9..2c706a22d 100644 --- a/js/ui/overview.js +++ b/js/ui/overview.js @@ -70,14 +70,13 @@ const ShellInfo = new Lang.Class({ let notification = null; if (this._source.notifications.length == 0) { notification = new MessageTray.Notification(this._source, text, null); + notification.setTransient(true); notification.setShowWhenLocked(true); } else { notification = this._source.notifications[0]; notification.update(text, null, { clear: true }); } - notification.setTransient(true); - this._undoCallback = undoCallback; if (undoCallback) { notification.addButton('system-undo',