mirror of https://github.com/gorhill/uBlock.git
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() {
|
const handleImportFilePicker = function() {
|
||||||
// https://github.com/chrisaljoudi/uBlock/issues/1004
|
// https://github.com/chrisaljoudi/uBlock/issues/1004
|
||||||
// Support extraction of filters from ABP backup file
|
// Support extraction of filters from ABP backup file
|
||||||
|
@ -188,7 +181,8 @@ const applyChanges = function() {
|
||||||
details => {
|
details => {
|
||||||
if ( details.error ) { return; }
|
if ( details.error ) { return; }
|
||||||
cachedUserFilters = details.content.trim();
|
cachedUserFilters = details.content.trim();
|
||||||
allFiltersApplyHandler();
|
userFiltersChanged(false);
|
||||||
|
messaging.send('dashboard', { what: 'reloadAllFilters' });
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue