fix: ensure consistent custom sound detection across main and renderer processes

This commit is contained in:
Moyasee
2025-11-08 15:14:12 +02:00
parent b6bbf05da6
commit 482d9b2f96

View File

@@ -46,7 +46,7 @@ async function getAchievementSoundPath(): Promise<string> {
const allThemes = await themesSublevel.values().all();
const activeTheme = allThemes.find((theme) => theme.isActive);
if (activeTheme) {
if (activeTheme?.hasCustomSound) {
const themeSoundPath = getThemeSoundPath(activeTheme.id);
if (themeSoundPath) {
return themeSoundPath;