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:
-
- DownloadDialog for component details
Methods
(private) _cancelDownload()
Cancels the current download
(private) _handleClose()
Prepares to close the dialog
(private) _onDownloadError(event, error)
Handles download errors
Parameters:
Name | Type | Description |
---|---|---|
event |
* |
the electron ipcRenderer event |
error |
* |
(private) _onDownloadProgress(event, progress)
Handles progress events from the download
Parameters:
Name | Type | Description |
---|---|---|
event |
* |
the electron ipcRenderer event |
progress |
float |
the download progress. |
(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. |
(private) _onDownloadSuccess()
Handles a successful download