mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-05 18:32:30 +01:00
Fix "Revert" button not resetting after saving changes
Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/367
This commit is contained in:
parent
3cf71835c4
commit
ca34bc4f3e
@ -101,13 +101,6 @@ const renderUserFilters = function(first) {
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
const allFiltersApplyHandler = function() {
|
||||
messaging.send('dashboard', { what: 'reloadAllFilters' });
|
||||
uDom('#userFiltersApply').prop('disabled', true );
|
||||
};
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
const handleImportFilePicker = function() {
|
||||
// https://github.com/chrisaljoudi/uBlock/issues/1004
|
||||
// Support extraction of filters from ABP backup file
|
||||
@ -188,7 +181,8 @@ const applyChanges = function() {
|
||||
details => {
|
||||
if ( details.error ) { return; }
|
||||
cachedUserFilters = details.content.trim();
|
||||
allFiltersApplyHandler();
|
||||
userFiltersChanged(false);
|
||||
messaging.send('dashboard', { what: 'reloadAllFilters' });
|
||||
}
|
||||
);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user