better startup play/stop handing
This commit is contained in:
parent
36144f9eb1
commit
8f5b10664d
9 changed files with 157 additions and 174 deletions
|
|
@ -44,7 +44,7 @@ class CurrentWeather extends WeatherDisplay {
|
|||
}
|
||||
// we only get here if there was no error above
|
||||
this.data = Object.assign({}, observations, {station: station});
|
||||
this.drawCanvas();
|
||||
this.setStatus(STATUS.loaded);
|
||||
}
|
||||
|
||||
async drawCanvas () {
|
||||
|
|
@ -175,7 +175,6 @@ class CurrentWeather extends WeatherDisplay {
|
|||
}));
|
||||
|
||||
this.finishDraw();
|
||||
this.setStatus(STATUS.loaded);
|
||||
}
|
||||
|
||||
shortConditions(condition) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue