Skip to content

Commit 0a9ee41

Browse files
committed
fix(extension): Fix stale errors showing in pop-up
1 parent c97163a commit 0a9ee41

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
## Bug Fixes
2121

22+
- Fixed stale resolver errors on system boot showing in pop-up
2223
- Forecast now can cycle through all 3 pages instead of just 2
2324
- Details are now arranged in a grid and are aligned by columns
2425
- Fixed some weird spacing in custom themes

src/extension.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,10 @@ export default class SimpleWeatherExtension extends Extension {
376376
if(errStr.length > 25) errStr = errStr.substring(0, 25) + "...";
377377
}
378378

379-
if(!this.#cachedWeather) await this.#handleErr(err);
379+
if(!this.#cachedWeather) {
380+
await this.#handleErr(err);
381+
if(this.#cachedWeather) errStr = null;
382+
}
380383
}
381384
if(this.#popup) this.#popup.setError(errStr);
382385
else console.error(`No popup to notify of error (${errStr})`);

0 commit comments

Comments
 (0)