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

18 lines
486 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-23 13:02:38 +08:00
import { registerAlgHandler } from "./alg";
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();
2024-09-23 13:02:38 +08:00
registerAlgHandler();
2024-09-11 12:58:50 +08:00
};