Skip to content

Commit 066914c

Browse files
authored
Fix "Save As" cancellation to not show error dialog (#167)
1 parent 369f776 commit 066914c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ function registerListener(session, options, callback = () => {}) {
193193
module.exports = (options = {}) => {
194194
app.on('session-created', session => {
195195
registerListener(session, options, (error, _) => {
196-
if (error) {
196+
if (error && !(error instanceof CancelError)) {
197197
const errorTitle = options.errorTitle || 'Download Error';
198198
dialog.showErrorBox(errorTitle, error.message);
199199
}

0 commit comments

Comments
 (0)