filters affect striping, not the sort order

This commit is contained in:
tophf 2018-05-15 12:21:30 +03:00
parent de2986a7c1
commit 68165e8fa2
4 changed files with 4 additions and 7 deletions

View File

@ -156,8 +156,7 @@ function filterOnChange({target: el, forceRefilter}) {
unhide: buildFilter(false),
});
if (installed) {
reapplyFilter().then(() =>
sorter.update());
reapplyFilter().then(sorter.updateStripes);
}
}

View File

@ -544,8 +544,7 @@ function handleUpdate(style, {reason, method, codeIsUpdated} = {}) {
if ((reason === 'update' || reason === 'install') && entry.matches('.updatable')) {
handleUpdateInstalled(entry, reason);
}
filterAndAppend({entry}).then(() =>
sorter.update());
filterAndAppend({entry}).then(sorter.updateStripes);
if (!entry.matches('.hidden') && reason !== 'import') {
animateElement(entry);
requestAnimationFrame(() => scrollElementIntoView(entry));

View File

@ -1,4 +1,4 @@
/* global installed updateStripes */
/* global installed */
/* global messageBox */
'use strict';

View File

@ -178,8 +178,7 @@ function reportUpdateState({updated, style, error, STATES}) {
}
if (filtersSelector.hide && isCheckAll) {
filterAndAppend({entry}).then(() =>
sorter.update());
filterAndAppend({entry}).then(sorter.updateStripes);
}
}