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
This commit is contained in:
Jasper St. Pierre 2012-12-19 22:45:16 -05:00
parent 571aaece2e
commit 9ebeb64570

View File

@ -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) {