mirror of https://github.com/gorhill/uBlock.git
Fix needless visual toggling of update/apply buttons
This commit is contained in:
parent
ed99d52bc4
commit
78f430678a
|
@ -326,7 +326,7 @@ const renderWidgets = function() {
|
|||
);
|
||||
uDom('#buttonUpdate').toggleClass(
|
||||
'disabled',
|
||||
document.querySelector('body:not(.updating) #lists .listEntry.obsolete > input[type="checkbox"]:checked') === null
|
||||
document.querySelector('body:not(.updating) #lists .listEntry.obsolete:not(.toRemove) > input[type="checkbox"]:checked') === null
|
||||
);
|
||||
};
|
||||
|
||||
|
@ -475,8 +475,8 @@ const selectFilterLists = async function() {
|
|||
|
||||
const buttonApplyHandler = async function() {
|
||||
uDom('#buttonApply').removeClass('enabled');
|
||||
renderWidgets();
|
||||
await selectFilterLists();
|
||||
renderWidgets();
|
||||
messaging.send('dashboard', { what: 'reloadAllFilters' });
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue