feat(app): option to turn off sound effects
This commit is contained in:
parent
ff3b174c42
commit
4e0f509e7b
6 changed files with 106 additions and 24 deletions
|
|
@ -233,7 +233,9 @@ export const { use: useNotification, provider: NotificationProvider } = createSi
|
|||
if (!session) return
|
||||
if (session.parentID) return
|
||||
|
||||
playSound(soundSrc(settings.sounds.agent()))
|
||||
if (settings.sounds.agentEnabled()) {
|
||||
playSound(soundSrc(settings.sounds.agent()))
|
||||
}
|
||||
|
||||
append({
|
||||
directory,
|
||||
|
|
@ -260,7 +262,9 @@ export const { use: useNotification, provider: NotificationProvider } = createSi
|
|||
if (meta.disposed) return
|
||||
if (session?.parentID) return
|
||||
|
||||
playSound(soundSrc(settings.sounds.errors()))
|
||||
if (settings.sounds.errorsEnabled()) {
|
||||
playSound(soundSrc(settings.sounds.errors()))
|
||||
}
|
||||
|
||||
const error = "error" in event.properties ? event.properties.error : undefined
|
||||
append({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue