fix: apply PR review comments - derive GEQ_FREQUENCIES, validate import, fix delete btn visibility, store preamp in presets

Agent-Logs-Url: https://github.com/tryptz/monochrome-autoeq/sessions/6b47309f-1fb1-479d-91be-c0a54aa94b84

Co-authored-by: tryptz <216453278+tryptz@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-04-06 22:17:36 +00:00 committed by edideaur
parent cb49904a21
commit 31b6af317e

View file

@ -1580,7 +1580,11 @@ export async function initializeSettings(scrobbler, player, api, ui) {
geqPresetSelects.forEach((select) => {
select.addEventListener('change', () => {
const key = select.value;
if (key) {
if (!key) {
updateDeleteBtnVisibility();
return;
}
// Check custom presets first
const customPresets = getLegacyGeqCustomPresets();
if (customPresets[key]) {
@ -1608,7 +1612,8 @@ export async function initializeSettings(scrobbler, player, api, ui) {
geqPresetSelects.forEach((s) => {
if (s !== select) s.value = key;
});
}
updateDeleteBtnVisibility();
return;
}
updateDeleteBtnVisibility();
});