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



commit 6dfa5f3ab51ae8a0b4fb530578b97c6419b04327
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]