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