From da20e5101366749dd32d0747d3d7365b2ed319a2 Mon Sep 17 00:00:00 2001 From: Mattk70 Date: Sat, 2 Nov 2024 13:17:28 +0000 Subject: [PATCH] turn on filters with gain adjustment --- js/ui.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/js/ui.js b/js/ui.js index 7a65da1..bdb11a8 100644 --- a/js/ui.js +++ b/js/ui.js @@ -3854,10 +3854,6 @@ function formatDuration(seconds){ updatePrefs('config.json', config) showFilterEffect(); filterIconDisplay(); - if (config.filters.active){ - document.getElementById('navbarSettings').click(); - document.getElementById('decreaseFont').scrollIntoView(); - } } @@ -4803,6 +4799,7 @@ function playRegion(){ config.audio.gain = element.value; worker.postMessage({action:'update-state', audio: config.audio}) const position = clamp(wavesurfer.getCurrentTime() / windowLength, 0, 1); + config.filters.active || toggleFilters(); fileLoaded && postBufferUpdate({ begin: bufferBegin, position: position, region: getRegion(), goToRegion: false }) break }