1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-03 09:39:38 +02:00

Inform when filter lists are reloaded in logger

Related discussion:
- https://github.com/uBlockOrigin/uBlock-issues/issues/2041#issuecomment-1585685791
This commit is contained in:
Raymond Hill 2023-06-10 11:54:24 -04:00
parent 2f0132c414
commit aa507924f3
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -834,6 +834,12 @@ self.addEventListener('hiddenSettingsChanged', ( ) => {
vAPI.storage.set({ 'availableFilterLists': µb.availableFilterLists });
logger.writeOne({
realm: 'message',
type: 'info',
text: 'Reloading all filter lists: done'
});
vAPI.messaging.broadcast({
what: 'staticFilteringDataChanged',
parseCosmeticFilters: µb.userSettings.parseAllABPHideFilters,
@ -865,6 +871,12 @@ self.addEventListener('hiddenSettingsChanged', ( ) => {
};
const onFilterListsReady = lists => {
logger.writeOne({
realm: 'message',
type: 'info',
text: 'Reloading all filter lists: start'
});
µb.availableFilterLists = lists;
if ( vAPI.Net.canSuspend() ) {