diff --git a/src/js/commandline-lists.js b/src/js/commandline-lists.js index 9d649fc11..d974e0fd4 100644 --- a/src/js/commandline-lists.js +++ b/src/js/commandline-lists.js @@ -636,6 +636,7 @@ let commandsSoundOnError = { configValue: true, exec: () => { UpdateConfig.setPlaySoundOnError(true); + Sound.playError(); }, }, ], diff --git a/src/js/settings.js b/src/js/settings.js index 622ed9c67..39acf6259 100644 --- a/src/js/settings.js +++ b/src/js/settings.js @@ -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",