mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-11 13:56:16 +00:00
fix: ensure consistent custom sound detection across main and renderer processes
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user