fix: 默认音效填充

This commit is contained in:
streakingman 2022-10-04 14:08:33 +08:00
parent 5e29a1e55a
commit e4c6a2d584

View File

@ -74,8 +74,8 @@ export const wrapThemeDefaultSounds: (theme: Theme<any>) => 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 &&