Only invalidate data onreconnection, if we had a refresh-timeout already.

merge-requests/218/head
Jens Lody 9 years ago
parent d0061bb0ef
commit d052d52774
  1. 8
      src/extension.js

@ -408,8 +408,14 @@ const OpenweatherMenuButton = new Lang.Class({
// Main.notifyError(title, err.message);
log(title + '\n' + err.message);
}
if (this._connected)
if (this._connected) {
if (!this._timeoutForecast)
this.forecastWeatherCache = undefined;
if (!this._timeoutCurrent)
this.currentWeatherCache = undefined;
this.parseWeatherCurrent();
}
},
locationChanged: function() {

Loading…
Cancel
Save