Skip to main content

Function: setAutoUpdaterState()

function setAutoUpdaterState(
status:
| "error"
| "idle"
| "available"
| "checking"
| "downloaded"
| "downloading",
updateDownloaded: boolean,
options?: StateUpdateOptions
): void;

Defined in: main/state/appState.ts:285

Updates the paired auto-updater status and downloaded flag.

Parameters​

status​

| "error" | "idle" | "available" | "checking" | "downloaded" | "downloading"

Auto-updater lifecycle status.

updateDownloaded​

boolean

True when an update is ready to install.

options?​

StateUpdateOptions

Additional metadata forwarded to the state manager.

Returns​

void