diff --git a/src/prefs.js b/src/prefs.js index 87a15b7..1ebd3b1 100644 --- a/src/prefs.js +++ b/src/prefs.js @@ -515,7 +515,8 @@ const WeatherPrefsWidget = new GObject.Class({ let config = this.configWidgets; for (let i in config) { - if (config[i][0].active != this[config[i][1]]) + if ((config[i][0].active !== undefined) && + (config[i][0].active != this[config[i][1]])) config[i][0].active = this[config[i][1]]; } },