better startup play/stop handing

This commit is contained in:
Matt Walsh
2020-09-17 16:34:38 -05:00
parent 36144f9eb1
commit 8f5b10664d
9 changed files with 157 additions and 174 deletions

View File

@@ -41,8 +41,7 @@ class ExtendedForecast extends WeatherDisplay {
// we only get here if there was no error above
this.data = this.parseExtendedForecast(forecast.properties.periods);
this.screenIndex = 0;
this.drawCanvas();
this.setStatus(STATUS.loaded);
}
// the api provides the forecast in 12 hour increments, flatten to day increments with high and low temperatures
@@ -166,6 +165,5 @@ class ExtendedForecast extends WeatherDisplay {
}));
this.finishDraw();
this.setStatus(STATUS.loaded);
}
}