ENH - clock app

This commit is contained in:
Eichenholz
2026-08-04 15:20:42 +02:00
parent 723eec5ef9
commit c6bac5b2c6
13 changed files with 944 additions and 54 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ import { onBeforeUnmount } from 'vue'
import { usePhoneStore } from '@/stores/phone'
import { ALARM_SOUND_IDS, type AlarmSoundId } from '@/utils/alarms'
import { playPhoneTone } from '@/utils/tones'
import { phoneToneDuration, playPhoneTone } from '@/utils/tones'
defineProps<{ backLabel: string; selectedSound: AlarmSoundId }>()
const emit = defineEmits<{
@@ -31,7 +31,7 @@ function selectSound(sound: AlarmSoundId): void {
phone.preferences.settings.ringtoneVolume,
false,
)
previewTimer = setTimeout(stopSoundPreview, 1800)
previewTimer = setTimeout(stopSoundPreview, phoneToneDuration(sound) + 100)
}
onBeforeUnmount(stopSoundPreview)