cvpilot-tool/apps/desktop/electron/ipcEvent/index.ts

16 lines
418 B
TypeScript
Raw Normal View History

2024-09-10 22:03:12 +08:00
import { ipcMain } from "electron";
2024-09-11 12:58:50 +08:00
import { registerDicomHandler } from "./dicom/handler";
import { registerCommonHandler } from "./common";
2024-09-10 22:03:12 +08:00
export const registerIpcMainHandlers = (mainWindow: Electron.BrowserWindow) => {
ipcMain.removeAllListeners();
/**
*
*/
ipcMain.on("ipc-loaded", () => mainWindow.show());
registerCommonHandler();
2024-09-11 12:58:50 +08:00
registerDicomHandler();
};