Fix warning about non-existing property.

merge-requests/218/head
Jens Lody 7 years ago
parent d9ad9c8e5e
commit 0278ad2c02
  1. 3
      src/prefs.js

@ -515,7 +515,8 @@ const WeatherPrefsWidget = new GObject.Class({
let config = this.configWidgets; let config = this.configWidgets;
for (let i in config) { 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]]; config[i][0].active = this[config[i][1]];
} }
}, },

Loading…
Cancel
Save