mirror of
https://github.com/netbymatt/ws4kp.git
synced 2026-04-18 17:49:31 -07:00
better startup play/stop handing
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user