From 9ebeb645705b5c1b02954f3c57fbc89197898344 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Wed, 19 Dec 2012 22:45:16 -0500 Subject: [PATCH] volume: Don't set the visibility of the main icon As the main icon is inside the actor, this is needless calculation. https://bugzilla.gnome.org/show_bug.cgi?id=690539 --- js/ui/status/volume.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/ui/status/volume.js b/js/ui/status/volume.js index cf9e762b5..9f65d71eb 100644 --- a/js/ui/status/volume.js +++ b/js/ui/status/volume.js @@ -249,8 +249,7 @@ const Indicator = new Lang.Class({ _syncVisibility: function() { this.actor.visible = this._hasPulseAudio; - this.mainIcon.visible = this._hasPulseAudio; - this._headphoneIcon.visible = this._hasPulseAudio && this._volumeMenu.hasHeadphones; + this._headphoneIcon.visible = this._volumeMenu.hasHeadphones; }, _onScrollEvent: function(actor, event) {