From ea7d411bc2d727a82a46734f374a30e56041a18f Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Fri, 1 Dec 2023 08:31:28 -0500 Subject: [PATCH] Support non-default sticky lists "Sticky" lists are those which stay visible when collapsing non-used lists in the "Filter lists" pane. --- src/js/3p-filters.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/js/3p-filters.js b/src/js/3p-filters.js index 610a8042e..800329004 100644 --- a/src/js/3p-filters.js +++ b/src/js/3p-filters.js @@ -130,7 +130,9 @@ const renderFilterLists = ( ) => { dom.attr(elem, 'href', listDetails.instructionURL || '#'); } dom.cl.toggle(listEntry, 'isDefault', - listDetails.isDefault === true || listkey === 'user-filters' + listDetails.isDefault === true || + listDetails.isImportant === true || + listkey === 'user-filters' ); elem = qs$(listEntry, '.leafstats'); dom.text(elem, renderLeafStats(on ? listDetails.entryUsedCount : 0, listDetails.entryCount));