From 5b624a34b8be027bf08962782bbea7369a832815 Mon Sep 17 00:00:00 2001 From: "Zeeshan Ali (Khattak)" Date: Sat, 9 Aug 2014 16:38:20 +0100 Subject: [PATCH] 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 --- js/ui/status/location.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/ui/status/location.js b/js/ui/status/location.js index 052f77cc6..c6694d1a0 100644 --- a/js/ui/status/location.js +++ b/js/ui/status/location.js @@ -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(); },