Files
hydra/src/main/events/themes/add-custom-theme.ts
Chubby Granny Chaser 484fa863dc fix: fixing stale state
2025-02-16 05:18:08 +00:00

13 lines
320 B
TypeScript

import { Theme } from "@types";
import { registerEvent } from "../register-event";
import { themesSublevel } from "@main/level";
const addCustomTheme = async (
_event: Electron.IpcMainInvokeEvent,
theme: Theme
) => {
await themesSublevel.put(theme.id, theme);
};
registerEvent("addCustomTheme", addCustomTheme);