feat: adding optional common redist install

This commit is contained in:
Chubby Granny Chaser
2025-04-06 22:17:54 +01:00
parent 1520e2b2ae
commit f8ea4f29d9
5 changed files with 18 additions and 7 deletions

View File

@@ -313,11 +313,11 @@ contextBridge.exposeInMainWorld("electron", {
};
},
onCommonRedistProgress: (
cb: (value: { component: string; complete: boolean }) => void
cb: (value: { log: string; complete: boolean }) => void
) => {
const listener = (
_event: Electron.IpcRendererEvent,
value: { component: string; complete: boolean }
value: { log: string; complete: boolean }
) => cb(value);
ipcRenderer.on("common-redist-progress", listener);
return () => ipcRenderer.removeListener("common-redist-progress", listener);