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

13 lines
320 B
TypeScript
Raw Normal View History

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