From 066914cf60a7be58e7a30e0aa3f04e0cbedf7b82 Mon Sep 17 00:00:00 2001 From: Theo Gravity Date: Sat, 3 Feb 2024 03:19:10 -0800 Subject: [PATCH] Fix "Save As" cancellation to not show error dialog (#167) --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 05dbff2..58c1df2 100644 --- a/index.js +++ b/index.js @@ -193,7 +193,7 @@ function registerListener(session, options, callback = () => {}) { module.exports = (options = {}) => { app.on('session-created', session => { registerListener(session, options, (error, _) => { - if (error) { + if (error && !(error instanceof CancelError)) { const errorTitle = options.errorTitle || 'Download Error'; dialog.showErrorBox(errorTitle, error.message); }