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