add ignored presets for butterchurn

This commit is contained in:
jeffvli
2025-12-25 13:49:14 -08:00
parent f78a572a3c
commit 800074dced
4 changed files with 18 additions and 1 deletions
@@ -179,12 +179,19 @@ const VisualizerInner = () => {
const allPresetNames = Object.keys(presets);
// Get the list of presets to cycle through
const presetList = butterchurnSettings.includeAllPresets
let presetList = butterchurnSettings.includeAllPresets
? allPresetNames
: butterchurnSettings.selectedPresets.length > 0
? butterchurnSettings.selectedPresets.filter((name) => presets[name])
: allPresetNames;
// Filter out ignored presets
if (butterchurnSettings.ignoredPresets && butterchurnSettings.ignoredPresets.length > 0) {
presetList = presetList.filter(
(name) => !butterchurnSettings.ignoredPresets.includes(name),
);
}
if (presetList.length === 0) return;
// Reset cycle timer when settings change