location: Only show menu when geolocation is in use
Users can now toggle geolocation off/on from privacy panel of gnome-control-center so we don't need to clutter the menu with a settings that most users won't touch most of the time. https://bugzilla.gnome.org/show_bug.cgi?id=731122
This commit is contained in:
parent
9c008ab998
commit
5b624a34b8
@ -96,10 +96,12 @@ const Indicator = new Lang.Class({
|
||||
_syncIndicator: function() {
|
||||
if (this._proxy == null) {
|
||||
this._indicator.visible = false;
|
||||
this._item.actor.visible = false;
|
||||
return;
|
||||
}
|
||||
|
||||
this._indicator.visible = this._proxy.InUse;
|
||||
this._item.actor.visible = this._indicator.visible;
|
||||
this._updateMenuLabels();
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user