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:
parent
cb49904a21
commit
31b6af317e
1 changed files with 33 additions and 28 deletions
|
|
@ -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();
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue