Move notification sound and badge settings to settings store

This commit is contained in:
Matthew Remmel
2025-09-24 13:50:01 -04:00
committed by hodlbod
parent e48d1e0e59
commit c6641dba31
4 changed files with 14 additions and 23 deletions
@@ -1,6 +1,6 @@
<script lang="ts">
import {onMount} from "svelte"
import {playAlertSound} from "@app/core/state"
import {userSettingsValues} from "@app/core/state"
import {notifications} from "../util/notifications"
let audioElement: HTMLAudioElement
@@ -8,7 +8,7 @@
let notificationCount = $state($notifications.size)
const playSound = () => {
if ($playAlertSound) {
if ($userSettingsValues.play_notification_sound) {
audioElement.play()
}
}