From e50de59669884dbe7bfabe92179f1c774f912c54 Mon Sep 17 00:00:00 2001 From: tophf Date: Mon, 4 Dec 2017 20:04:17 +0300 Subject: [PATCH] fixup 1951bc89: always debounce note update --- manage/filters.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/manage/filters.js b/manage/filters.js index 71b7c101..05cc1dc2 100644 --- a/manage/filters.js +++ b/manage/filters.js @@ -261,7 +261,7 @@ function reapplyFilter(container = installed) { } } if (fullPass) { - showFiltersStats(); + showFiltersStats({immediately: true}); } } @@ -298,9 +298,9 @@ function reapplyFilter(container = installed) { } -function showFiltersStats() { - if (!BG.cachedStyles.list) { - debounce(showFiltersStats, 100); +function showFiltersStats({immediately} = {}) { + if (!immediately || !BG.cachedStyles.list) { + debounce(showFiltersStats, 100, {immediately: true}); return; } $('#filters').classList.toggle('active', filtersSelector.hide !== '');