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
This commit is contained in:
Florian Müllner 2015-02-25 18:08:53 +01:00
parent c9bcb411fc
commit 5f5dc8327f

View File

@ -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;