electron-dl-manager
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -102,5 +102,5 @@ "use strict"; | ||
this.log(`Prompting save as dialog`); | ||
const { directory, saveAsFilename, overwrite, saveDialogOptions } = this.config; | ||
const { directory, overwrite, saveDialogOptions } = this.config; | ||
const { item } = this.downloadData; | ||
const filePath = (0, utils_1.determineFilePath)({ directory, saveAsFilename, item, overwrite }); | ||
const filePath = (0, utils_1.determineFilePath)({ directory, item, overwrite }); | ||
// This actually isn't what shows the save dialog | ||
@@ -138,2 +138,3 @@ // If item.setSavePath() isn't called at all after some tiny period of time, | ||
this.log(`Download was cancelled by user`); | ||
this.downloadData.cancelledFromSaveAsDialog = true; | ||
await this.callbackDispatcher.onDownloadCancelled(this.downloadData); | ||
@@ -140,0 +141,0 @@ } |
@@ -76,5 +76,5 @@ import * as path from 'path'; | ||
this.log(`Prompting save as dialog`); | ||
const { directory, saveAsFilename, overwrite, saveDialogOptions } = this.config; | ||
const { directory, overwrite, saveDialogOptions } = this.config; | ||
const { item } = this.downloadData; | ||
const filePath = determineFilePath({ directory, saveAsFilename, item, overwrite }); | ||
const filePath = determineFilePath({ directory, item, overwrite }); | ||
// This actually isn't what shows the save dialog | ||
@@ -112,2 +112,3 @@ // If item.setSavePath() isn't called at all after some tiny period of time, | ||
this.log(`Download was cancelled by user`); | ||
this.downloadData.cancelledFromSaveAsDialog = true; | ||
await this.callbackDispatcher.onDownloadCancelled(this.downloadData); | ||
@@ -114,0 +115,0 @@ } |
{ | ||
"name": "electron-dl-manager", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "A library for implementing file downloads in Electron with 'save as' dialog and id support.", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
274753
1752