mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Fix undue unchecking of setting in "My filters"
Related feedback: https://github.com/uBlockOrigin/uBlock-issues/discussions/2895#discussioncomment-12749154
This commit is contained in:
parent
d8b29cf1a3
commit
2bb6999e3f
1 changed files with 1 additions and 2 deletions
|
|
@ -97,7 +97,7 @@ function getCurrentState() {
|
|||
const enabled = qs$('#enableMyFilters input').checked;
|
||||
return {
|
||||
enabled,
|
||||
trusted: enabled && qs$('#trustMyFilters input').checked,
|
||||
trusted: qs$('#trustMyFilters input').checked,
|
||||
filters: getEditorText(),
|
||||
};
|
||||
}
|
||||
|
|
@ -128,7 +128,6 @@ function userFiltersChanged(details = {}) {
|
|||
qs$('#userFiltersApply').disabled = !changed;
|
||||
qs$('#userFiltersRevert').disabled = !changed;
|
||||
const enabled = qs$('#enableMyFilters input').checked;
|
||||
dom.attr('#trustMyFilters .input.checkbox', 'disabled', enabled ? null : '');
|
||||
const trustedbefore = cmEditor.getOption('trustedSource');
|
||||
const trustedAfter = enabled && qs$('#trustMyFilters input').checked;
|
||||
if ( trustedAfter === trustedbefore ) { return; }
|
||||
|
|
|
|||
Loading…
Reference in a new issue