Fix "Revert" button not resetting after saving changes

Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/367
This commit is contained in:
Raymond Hill 2019-05-18 17:48:19 -04:00
parent 3cf71835c4
commit ca34bc4f3e
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 2 additions and 8 deletions

View File

@ -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' });
} }
); );
}; };