issues changing locations

This commit is contained in:
Matt Walsh
2025-06-02 15:57:58 -05:00
parent 4bf3f4d1e0
commit 7c50f5f1d7
4 changed files with 54 additions and 6 deletions

View File

@@ -444,7 +444,9 @@ class WeatherDisplay {
}
setAutoReload() {
this.autoRefreshHandle = this.autoRefreshHandle ?? setInterval(() => this.getData(false, true), settings.refreshTime.value);
// refresh time can be forced by the user (for hazards)
const refreshTime = this.refreshTime ?? settings.refreshTime.value;
this.autoRefreshHandle = this.autoRefreshHandle ?? setInterval(() => this.getData(false, true), refreshTime);
}
}