Skip to content

Commit

Permalink
Fix "Save As" cancellation to not show error dialog (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
theogravity authored Feb 3, 2024
1 parent 369f776 commit 066914c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 066914c

Please sign in to comment.