aboutsummaryrefslogtreecommitdiff
path: root/examples/geolocation
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-25 01:10:49 -0400
committerCraig Jennings <c@cjennings.net>2026-06-25 01:10:49 -0400
commit4266923daf6f137fbe2897334b7669f7fb4633c8 (patch)
tree42144ed5202f4c19e6f774cbc3688b0273777b7a /examples/geolocation
parentefd3cdce5b3aebfdb3e02460d1ec0434cef85949 (diff)
downloademacs-wttrin-4266923daf6f137fbe2897334b7669f7fb4633c8.tar.gz
emacs-wttrin-4266923daf6f137fbe2897334b7669f7fb4633c8.zip
fix: refresh mode-line weather when the default location changes
Pressing d to promote a displayed location to the favorite changed wttrin-favorite-location but left the mode-line untouched. Its cache still held the old location's weather. The next scheduled refetch could be up to an hour away, so the hover tooltip kept showing the previous default. wttrin--set-favorite-location now detects a real change and, when the mode-line is active, clears the stale cache and fetches the new location at once via a new wttrin--mode-line-refresh-now helper. The tooltip switches within seconds instead of waiting for the timer.
Diffstat (limited to 'examples/geolocation')
0 files changed, 0 insertions, 0 deletions