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