mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-11-12 02:17:21 +08:00
playing error sound when enabled
This commit is contained in:
parent
ecb11e0f9d
commit
0e777c9f75
2 changed files with 5 additions and 1 deletions
|
@ -636,6 +636,7 @@ let commandsSoundOnError = {
|
|||
configValue: true,
|
||||
exec: () => {
|
||||
UpdateConfig.setPlaySoundOnError(true);
|
||||
Sound.playError();
|
||||
},
|
||||
},
|
||||
],
|
||||
|
|
|
@ -172,7 +172,10 @@ async function initGroups() {
|
|||
);
|
||||
groups.playSoundOnError = new SettingsGroup(
|
||||
"playSoundOnError",
|
||||
UpdateConfig.setPlaySoundOnError
|
||||
UpdateConfig.setPlaySoundOnError,
|
||||
() => {
|
||||
if (Config.playSoundOnError) Sound.playError();
|
||||
}
|
||||
);
|
||||
groups.playSoundOnClick = new SettingsGroup(
|
||||
"playSoundOnClick",
|
||||
|
|
Loading…
Reference in a new issue