From b2f1fe17c24c8b783a5b23b45d8a2d903e84ee87 Mon Sep 17 00:00:00 2001 From: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com> Date: Thu, 5 Jun 2025 16:30:35 -0500 Subject: [PATCH] Play select sound on successful submission or cancel --- src/ui/change-password-form-ui-handler.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ui/change-password-form-ui-handler.ts b/src/ui/change-password-form-ui-handler.ts index 1ace89c228b..d1c465051e9 100644 --- a/src/ui/change-password-form-ui-handler.ts +++ b/src/ui/change-password-form-ui-handler.ts @@ -90,6 +90,7 @@ export class ChangePasswordFormUiHandler extends FormModalUiHandler { pokerogueApi.account.changePassword({ password: passwordInput.text }).then(error => { if (!error && originalSubmitAction) { + globalScene.ui.playSelect(); originalSubmitAction(); // Only clear inputs if the action was successful for (const input of this.inputs) { @@ -104,7 +105,7 @@ export class ChangePasswordFormUiHandler extends FormModalUiHandler { // Upon pressing cancel, the inputs should be cleared const originalCancelAction = this.cancelAction; this.cancelAction = () => { - console.log("Change password form cancelled"); + globalScene.ui.playSelect(); for (const input of this.inputs) { input.setText(""); }