1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-15 07:22:28 +02:00

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

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() {
// 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' });
}
);
};