mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Fix needless visual toggling of update/apply buttons
This commit is contained in:
parent
ed99d52bc4
commit
78f430678a
1 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue