Format fixes

openweathermap_3.6
Jens Lody 11 years ago
parent 2d0e21dab2
commit 2db32a94e5
  1. 8
      src/extension.js
  2. 8
      src/prefs.js

@ -503,26 +503,26 @@ const WeatherMenuButton = new Lang.Class({
if (!this._settings) if (!this._settings)
this.loadConfig(); this.loadConfig();
let v = this._settings.get_int(WEATHER_REFRESH_INTERVAL_CURRENT); let v = this._settings.get_int(WEATHER_REFRESH_INTERVAL_CURRENT);
return ((v >= 600)?v:600); return ((v >= 600) ? v : 600);
}, },
set _refresh_interval_current(v) { set _refresh_interval_current(v) {
if (!this._settings) if (!this._settings)
this.loadConfig(); this.loadConfig();
this._settings.set_int(WEATHER_REFRESH_INTERVAL_CURRENT, ((v >= 600)?v:600)); this._settings.set_int(WEATHER_REFRESH_INTERVAL_CURRENT, ((v >= 600) ? v : 600));
}, },
get _refresh_interval_forecast() { get _refresh_interval_forecast() {
if (!this._settings) if (!this._settings)
this.loadConfig(); this.loadConfig();
let v = this._settings.get_int(WEATHER_REFRESH_INTERVAL_FORECAST); let v = this._settings.get_int(WEATHER_REFRESH_INTERVAL_FORECAST);
return ((v >= 600)?v:600); return ((v >= 600) ? v : 600);
}, },
set _refresh_interval_forecast(v) { set _refresh_interval_forecast(v) {
if (!this._settings) if (!this._settings)
this.loadConfig(); this.loadConfig();
this._settings.set_int(WEATHER_REFRESH_INTERVAL_FORECAST, ((v >= 600)?v:600)); this._settings.set_int(WEATHER_REFRESH_INTERVAL_FORECAST, ((v >= 600) ? v : 600));
}, },
get _center_forecast() { get _center_forecast() {

@ -720,26 +720,26 @@ const WeatherPrefsWidget = new GObject.Class({
if (!this.Settings) if (!this.Settings)
this.loadConfig(); this.loadConfig();
let v = this.Settings.get_int(WEATHER_REFRESH_INTERVAL_CURRENT); let v = this.Settings.get_int(WEATHER_REFRESH_INTERVAL_CURRENT);
return ((v >= 600)?v:600); return ((v >= 600) ? v : 600);
}, },
set refresh_interval_current(v) { set refresh_interval_current(v) {
if (!this.Settings) if (!this.Settings)
this.loadConfig(); this.loadConfig();
this.Settings.set_int(WEATHER_REFRESH_INTERVAL_CURRENT, ((v >= 600)?v:600)); this.Settings.set_int(WEATHER_REFRESH_INTERVAL_CURRENT, ((v >= 600) ? v : 600));
}, },
get refresh_interval_forecast() { get refresh_interval_forecast() {
if (!this.Settings) if (!this.Settings)
this.loadConfig(); this.loadConfig();
let v = this.Settings.get_int(WEATHER_REFRESH_INTERVAL_FORECAST); let v = this.Settings.get_int(WEATHER_REFRESH_INTERVAL_FORECAST);
return ((v >= 600)?v:600); return ((v >= 600) ? v : 600);
}, },
set refresh_interval_forecast(v) { set refresh_interval_forecast(v) {
if (!this.Settings) if (!this.Settings)
this.loadConfig(); this.loadConfig();
this.Settings.set_int(WEATHER_REFRESH_INTERVAL_FORECAST, ((v >= 600)?v:600)); this.Settings.set_int(WEATHER_REFRESH_INTERVAL_FORECAST, ((v >= 600) ? v : 600));
}, },
get center_forecast() { get center_forecast() {

Loading…
Cancel
Save