From b2db95380b49483fe1e688751427c58cfa49f85d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Mon, 22 Feb 2010 20:06:13 +0100 Subject: [PATCH] [MessageTray] Clear bannerText before re-adding on updates Currently only the old title/summary line is removed from notifications before setting the updated values - do the same for bannerText if applicable. --- js/ui/messageTray.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 188a55fb2..62011a287 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -80,7 +80,7 @@ Notification.prototype = { let children = this.actor.get_children(); for (let i = 0; i < children.length; i++) { let meta = this.actor.get_child_meta(children[i]); - if (clear || meta.row == 0) + if (clear || meta.row == 0 || (this._bannerBody && meta.row == 1)) children[i].destroy(); } if (clear) {