DownloadUpdateDialogContainer

DownloadUpdateDialogContainer

Renders a dialog to download the software update. This component will begin downloading as soon as it is mounted.

Constructor

new DownloadUpdateDialogContainer()

Properties:
Name Type Description
open bool

controls whether the dialog is open or closed

translate func

the localization function

onClose func

callback when the dialog is closed

update object

the available update

Source:
See:

Methods

(private) _cancelDownload()

Cancels the current download

Source:

(private) _handleClose()

Prepares to close the dialog

Source:

(private) _onDownloadError(event, error)

Handles download errors

Parameters:
Name Type Description
event *

the electron ipcRenderer event

error *
Source:

(private) _onDownloadProgress(event, progress)

Handles progress events from the download

Parameters:
Name Type Description
event *

the electron ipcRenderer event

progress float

the download progress.

Source:

(private) _onDownloadStarted(event, downloadId)

Handles the download startup. This collects the download's cancel token in order to allow users to manually cancel the download

Parameters:
Name Type Description
event *

the electron ipcRenderer event

downloadId string

the download id.

Source:

(private) _onDownloadSuccess()

Handles a successful download

Source: