location: Rename _updateMenuVisibility to _updateMenu
We'll soon be doing more than just toggling the accuracy of menu itself in this function. Hence the renaming. https://bugzilla.gnome.org/show_bug.cgi?id=723684
This commit is contained in:
parent
7c3892f5a2
commit
59634b2cf5
@ -122,7 +122,7 @@ const Indicator = new Lang.Class({
|
|||||||
this._propertiesChangedId = this._proxy.connect('g-properties-changed',
|
this._propertiesChangedId = this._proxy.connect('g-properties-changed',
|
||||||
Lang.bind(this, this._onGeocluePropsChanged));
|
Lang.bind(this, this._onGeocluePropsChanged));
|
||||||
|
|
||||||
this._updateMenuVisibility();
|
this._updateMenu();
|
||||||
this._syncIndicator();
|
this._syncIndicator();
|
||||||
|
|
||||||
this._proxy.AddAgentRemote('gnome-shell', Lang.bind(this, this._onAgentRegistered));
|
this._proxy.AddAgentRemote('gnome-shell', Lang.bind(this, this._onAgentRegistered));
|
||||||
@ -177,7 +177,7 @@ const Indicator = new Lang.Class({
|
|||||||
this._agent.emit_property_changed('MaxAccuracyLevel', variant);
|
this._agent.emit_property_changed('MaxAccuracyLevel', variant);
|
||||||
},
|
},
|
||||||
|
|
||||||
_updateMenuVisibility: function() {
|
_updateMenu: function() {
|
||||||
this._availableAccuracyLevel = this._proxy.AvailableAccuracyLevel;
|
this._availableAccuracyLevel = this._proxy.AvailableAccuracyLevel;
|
||||||
this.menu.actor.visible = (this._availableAccuracyLevel != 0);
|
this.menu.actor.visible = (this._availableAccuracyLevel != 0);
|
||||||
},
|
},
|
||||||
@ -187,7 +187,7 @@ const Indicator = new Lang.Class({
|
|||||||
if ("InUse" in unpacked)
|
if ("InUse" in unpacked)
|
||||||
this._syncIndicator();
|
this._syncIndicator();
|
||||||
if ("AvailableAccuracyLevel" in unpacked)
|
if ("AvailableAccuracyLevel" in unpacked)
|
||||||
this._updateMenuVisibility();
|
this._updateMenu();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user