From 14013786d36b2ef78b0d66232dc30f9d7575102a Mon Sep 17 00:00:00 2001 From: Jens Lody Date: Wed, 1 Jan 2014 10:46:00 +0100 Subject: [PATCH] Fix minimum possible refresh time in pref.js, not relevant at the moment, because it's not configuranle at the moment. --- src/prefs.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/prefs.js b/src/prefs.js index a508650..1c41e78 100644 --- a/src/prefs.js +++ b/src/prefs.js @@ -753,26 +753,26 @@ const WeatherPrefsWidget = new GObject.Class({ if (!this.Settings) this.loadConfig(); let v = this.Settings.get_int(WEATHER_REFRESH_INTERVAL_CURRENT); - return ((v >= 60) ? v : 60); + return ((v >= 600) ? v : 600); }, set refresh_interval_current(v) { if (!this.Settings) this.loadConfig(); - this.Settings.set_int(WEATHER_REFRESH_INTERVAL_CURRENT, ((v >= 60) ? v : 60)); + this.Settings.set_int(WEATHER_REFRESH_INTERVAL_CURRENT, ((v >= 600) ? v : 600)); }, get refresh_interval_forecast() { if (!this.Settings) this.loadConfig(); let v = this.Settings.get_int(WEATHER_REFRESH_INTERVAL_FORECAST); - return ((v >= 60) ? v : 60); + return ((v >= 600) ? v : 600); }, set refresh_interval_forecast(v) { if (!this.Settings) this.loadConfig(); - this.Settings.set_int(WEATHER_REFRESH_INTERVAL_FORECAST, ((v >= 60) ? v : 60)); + this.Settings.set_int(WEATHER_REFRESH_INTERVAL_FORECAST, ((v >= 600) ? v : 600)); }, get center_forecast() {