From a403a0ccfac410f8f2fde4100c16ac536c826ad7 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Fri, 29 Aug 2025 09:15:29 +0200 Subject: Age filter: Unconditionally call changed(). Not just when `ageFilterSettings._active !== active`. The user can change the filter interval without canceling the filter altogether, and that should trigger a redraw event. The redraw might be unnecessary if _active and ._min_ts and/or ._max_ts are unchanged, but it's not worth making a check for that. --- main.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'main.js') diff --git a/main.js b/main.js index 8a6d8f5..60233de 100644 --- a/main.js +++ b/main.js @@ -5927,13 +5927,11 @@ const ageFilterSetActive = (function() { .forEach((lyr) => lyr.changed()); }; const setter = function(active) { - if (ageFilterSettings._active !== active) { - if (active) { - ageFilterSettings.setupMinMax(); - } - ageFilterSettings._active = active; - changed(); + if (active) { + ageFilterSettings.setupMinMax(); } + ageFilterSettings._active = active; + changed(); if (active && ageFilterSettings.type === 'relative') { if (timeoutID == null) { timeoutID = setTimeout(fun, getDelay(state)[0]); -- cgit v1.2.3