[gnome-shell/wip/fmuellner/notification-redux: 81/82] messageTray: Fix notification updates



commit fd3c0015c9ea59d43bc1cffc189de8719e562d36
Author: Florian Müllner <fmuellner gnome org>
Date:   Sat Feb 14 06:10:50 2015 +0100

    messageTray: Fix notification updates

 js/ui/messageTray.js |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index 8aa2fea..5ae39cf 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -664,9 +664,9 @@ const Notification = new Lang.Class({
         this.bannerBodyMarkup = params.bannerMarkup;
         this._bannerBodyAdded = false;
 
-        // Add the bannerBody now if we know for sure we'll need it
-        if (this.bannerBodyText)
-            this._addBannerBody();
+        if (params.clear)
+            this._bannerBodyBin.destroy_all_children();
+        this._addBannerBody();
 
         if (this._soundName != params.soundName ||
             this._soundFile != params.soundFile) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]