Merge pull request #6629 from electron/download-item-get-save-path
Set download item save path to selected path from dialog
This commit is contained in:
commit
e73bd00854
4 changed files with 22 additions and 6 deletions
|
@ -80,6 +80,12 @@ The API is only available in session's `will-download` callback function.
|
|||
If user doesn't set the save path via the API, Electron will use the original
|
||||
routine to determine the save path(Usually prompts a save dialog).
|
||||
|
||||
### `downloadItem.getSavePath()`
|
||||
|
||||
Returns the save path of the download item. This will be either the path
|
||||
set via `downloadItem.setSavePath(path)` or the path selected from the shown
|
||||
save dialog.
|
||||
|
||||
### `downloadItem.pause()`
|
||||
|
||||
Pauses the download.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue