cvpilot-tool/apps/desktop/electron/ipcEvent/index.ts
2024-09-11 12:58:50 +08:00

14 lines
341 B
TypeScript

import { ipcMain } from "electron";
import { registerDicomHandler } from "./dicom/handler";
export const registerIpcMainHandlers = (mainWindow: Electron.BrowserWindow) => {
ipcMain.removeAllListeners();
/**
* 等待渲染完成再显示窗口
*/
ipcMain.on("ipc-loaded", () => mainWindow.show());
registerDicomHandler();
};