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

Function broadcastUpdateStatus

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

Source from the content-addressed store, hash-verified

870type ProgressInfo = { readonly percent: number };
871
872const broadcastUpdateStatus = () => {
873 for (const win of BrowserWindow.getAllWindows()) {
874 if (!win.isDestroyed()) win.webContents.send(UPDATE_STATUS_CHANNEL, updateStatus);
875 }
876};
877
878const setUpdateStatus = (status: DesktopUpdateStatus) => {
879 updateStatus = status;

Callers 1

setUpdateStatusFunction · 0.85

Calls 1

sendMethod · 0.65

Tested by

no test coverage detected