mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-27 12:51:03 +00:00
14 lines
441 B
TypeScript
14 lines
441 B
TypeScript
import { registerEvent } from "../register-event";
|
|
import { getThemeSoundPath } from "@main/helpers";
|
|
import { themesSublevel } from "@main/level";
|
|
|
|
const getThemeSoundPathEvent = async (
|
|
_event: Electron.IpcMainInvokeEvent,
|
|
themeId: string
|
|
): Promise<string | null> => {
|
|
const theme = await themesSublevel.get(themeId);
|
|
return getThemeSoundPath(themeId, theme?.name);
|
|
};
|
|
|
|
registerEvent("getThemeSoundPath", getThemeSoundPathEvent);
|