Make effect menu announce title only once

This commit is contained in:
Jage9
2026-02-21 02:09:21 -05:00
parent e3d2fe6404
commit dc30bfde4d
2 changed files with 3 additions and 3 deletions

View File

@@ -1,3 +1,3 @@
// Maintainer-controlled web client version.
// Format: YYYY.MM.DD Rn (example: 2026.02.20 R2)
window.CHGRID_WEB_VERSION = "2026.02.21 R81";
window.CHGRID_WEB_VERSION = "2026.02.21 R82";

View File

@@ -1635,7 +1635,7 @@ function handleEffectSelectModeInput(code: string, key: string): void {
code === 'ArrowDown'
? (state.effectSelectIndex + 1) % EFFECT_SEQUENCE.length
: (state.effectSelectIndex - 1 + EFFECT_SEQUENCE.length) % EFFECT_SEQUENCE.length;
updateStatus(`Select effect: ${EFFECT_SEQUENCE[state.effectSelectIndex].label}`);
updateStatus(EFFECT_SEQUENCE[state.effectSelectIndex].label);
audio.sfxUiBlip();
return;
}
@@ -1648,7 +1648,7 @@ function handleEffectSelectModeInput(code: string, key: string): void {
);
if (nextByInitial >= 0) {
state.effectSelectIndex = nextByInitial;
updateStatus(`Select effect: ${EFFECT_SEQUENCE[state.effectSelectIndex].label}`);
updateStatus(EFFECT_SEQUENCE[state.effectSelectIndex].label);
audio.sfxUiBlip();
return;
}