[gnome-shell/wip/fmuellner/notification-redux+sass: 77/122] messageTray: Fix notification updates



commit df046c256523e22eb87093f6c4c1392aa0816dbc
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 c6dc8bb..89320cf 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]