Commit 5c4c3577 authored by Evgeny Bobkin's avatar Evgeny Bobkin Committed by Paolo Borelli
Browse files

Add gsetting to toggle geolocation support

parent 0c241141
......@@ -21,6 +21,13 @@
Configured timer duration in seconds.
</_description>
</key>
<key name="geolocation" type="b">
<default>true</default>
<_summary>Geolocation support</_summary>
<_description>
Turn geolocation support on and off.
</_description>
</key>
</schema>
<enum id="org.gnome.clocks.panelid">
<value nick="world" value="0"/>
......
......@@ -321,9 +321,11 @@ public class MainPanel : Gtk.Stack, Clocks.Clock {
load ();
use_geolocation.begin ((obj, res) => {
use_geolocation.end (res);
});
if (settings.get_boolean ("geolocation")) {
use_geolocation.begin ((obj, res) => {
use_geolocation.end (res);
});
}
notify["visible-child"].connect (() => {
if (visible_child == content_view) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment