summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcus Lundblad <ml@dfupdate.se>2022-03-08 23:20:31 +0100
committerMarcus Lundblad <ml@dfupdate.se>2022-04-03 22:12:14 +0200
commit201dd494356c5cfcf1ca2142968006a46855fa5c (patch)
tree61ebb4f3e43279597172b35c64d7c26c77f7c663 /src
parenta7e160df159d70caa3dee214cab99c7d39a33be2 (diff)
downloadgnome-maps-201dd494356c5cfcf1ca2142968006a46855fa5c.tar.gz
mainWindow: Don't determine current location button visibilty on network
Don't disable the goto current location button based on network availabilty.
Diffstat (limited to 'src')
-rw-r--r--src/mainWindow.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mainWindow.js b/src/mainWindow.js
index ddea4d72..05168d4c 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -341,9 +341,7 @@ var MainWindow = GObject.registerClass({
}
_updateLocationSensitivity() {
- let sensitive = (Application.geoclue.state !== Geoclue.State.INITIAL &&
- (this.application.connected ||
- this.application.local_tile_path));
+ let sensitive = Application.geoclue.state !== Geoclue.State.INITIAL;
this.lookup_action("goto-user-location").set_enabled(sensitive);
}