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:
parent
571aaece2e
commit
9ebeb64570
@ -249,8 +249,7 @@ const Indicator = new Lang.Class({
|
|||||||
|
|
||||||
_syncVisibility: function() {
|
_syncVisibility: function() {
|
||||||
this.actor.visible = this._hasPulseAudio;
|
this.actor.visible = this._hasPulseAudio;
|
||||||
this.mainIcon.visible = this._hasPulseAudio;
|
this._headphoneIcon.visible = this._volumeMenu.hasHeadphones;
|
||||||
this._headphoneIcon.visible = this._hasPulseAudio && this._volumeMenu.hasHeadphones;
|
|
||||||
},
|
},
|
||||||
|
|
||||||
_onScrollEvent: function(actor, event) {
|
_onScrollEvent: function(actor, event) {
|
||||||
|
Loading…
Reference in New Issue
Block a user