[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.
This commit is contained in:
Florian Müllner 2010-02-22 20:06:13 +01:00
parent b6bb26e9ae
commit b2db95380b

View File

@ -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) {