[gnome-shell] messageTray: Fix actor visibility



commit 5f5dc8327f4e719c5d9176423240aba5cda602ac
Author: Florian Müllner <fmuellner gnome org>
Date:   Wed Feb 25 18:08:53 2015 +0100

    messageTray: Fix actor visibility
    
    The actor is supposed to be hidden while no notification banner
    is displayed, and in addition to that when banners are temporarily
    blocked (because the calendar is open). However the current code
    always shows the actor when banners are not blocked, fix that.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=744912

 js/ui/messageTray.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index 149943c..139b165 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -1796,7 +1796,7 @@ const MessageTray = new Lang.Class({
     // _updateState() figures out what (if anything) needs to be done
     // at the present time.
     _updateState: function() {
-        this.actor.visible = !this._bannerBlocked;
+        this.actor.visible = !this._bannerBlocked && this._banner != null;
         if (this._bannerBlocked)
             return;
 


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