()
| 875 | type ProgressInfo = { readonly percent: number }; |
| 876 | |
| 877 | const broadcastUpdateStatus = () => { |
| 878 | for (const win of BrowserWindow.getAllWindows()) { |
| 879 | if (!win.isDestroyed()) win.webContents.send(UPDATE_STATUS_CHANNEL, updateStatus); |
| 880 | } |
| 881 | }; |
| 882 | |
| 883 | const setUpdateStatus = (status: DesktopUpdateStatus) => { |
| 884 | updateStatus = status; |