From e4c6a2d584648b35735ede614a6f8683521e012e Mon Sep 17 00:00:00 2001 From: streakingman Date: Tue, 4 Oct 2022 14:08:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=BB=98=E8=AE=A4=E9=9F=B3=E6=95=88?= =?UTF-8?q?=E5=A1=AB=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils.ts b/src/utils.ts index da478eb..439b4fa 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -74,8 +74,8 @@ export const wrapThemeDefaultSounds: (theme: Theme) => void = (theme) => { for (const icon of theme.icons) { if (!icon.clickSound) icon.clickSound = 'button-click'; if (!icon.tripleSound) icon.tripleSound = 'triple'; - if (icon.clickSound === 'button-click') hasUseDefaultTriple = true; - if (icon.tripleSound === 'triple') hasUseDefaultClick = true; + if (icon.clickSound === 'button-click') hasUseDefaultClick = true; + if (icon.tripleSound === 'triple') hasUseDefaultTriple = true; } if ( hasUseDefaultClick &&