MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / broadcastUpdateStatus

Function broadcastUpdateStatus

apps/desktop/src/main/index.ts:760–764  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

758type ProgressInfo = { readonly percent: number };
759
760const broadcastUpdateStatus = () => {
761 for (const win of BrowserWindow.getAllWindows()) {
762 if (!win.isDestroyed()) win.webContents.send(UPDATE_STATUS_CHANNEL, updateStatus);
763 }
764};
765
766const setUpdateStatus = (status: DesktopUpdateStatus) => {
767 updateStatus = status;

Callers 1

setUpdateStatusFunction · 0.85

Calls 1

sendMethod · 0.65

Tested by

no test coverage detected