( status: DesktopUpdateStatus, message: string, )
| 95 | // already offered "Restart to update". Dropping that error left the card |
| 96 | // unchanged and the click looked like a no-op. |
| 97 | export const statusAfterUpdateError = ( |
| 98 | status: DesktopUpdateStatus, |
| 99 | message: string, |
| 100 | ): DesktopUpdateStatus => { |
| 101 | if (status.state === "idle") return status; |
| 102 | return { state: "error", version: status.version, message }; |
| 103 | }; |
| 104 | |
| 105 | export const planFatalAutoInstallOnQuit = (input: { |
| 106 | readonly packaged: boolean; |
no outgoing calls
no test coverage detected