From aa507924f356f0b039b31e7e67a7226b47a58fc8 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Sat, 10 Jun 2023 11:54:24 -0400 Subject: [PATCH] Inform when filter lists are reloaded in logger Related discussion: - https://github.com/uBlockOrigin/uBlock-issues/issues/2041#issuecomment-1585685791 --- src/js/storage.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/js/storage.js b/src/js/storage.js index 07075f76a..c9f4a83b8 100644 --- a/src/js/storage.js +++ b/src/js/storage.js @@ -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() ) {