fixup 1951bc89: always debounce note update

This commit is contained in:
tophf 2017-12-04 20:04:17 +03:00
parent 294917ed4d
commit e50de59669

View File

@ -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 !== '');