()
| 827 | type ProgressInfo = { readonly percent: number }; |
| 828 | |
| 829 | const broadcastUpdateStatus = () => { |
| 830 | for (const win of BrowserWindow.getAllWindows()) { |
| 831 | if (!win.isDestroyed()) win.webContents.send(UPDATE_STATUS_CHANNEL, updateStatus); |
| 832 | } |
| 833 | }; |
| 834 | |
| 835 | const setUpdateStatus = (status: DesktopUpdateStatus) => { |
| 836 | updateStatus = status; |