14 lines
341 B
TypeScript
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();
|
|
};
|