Skip to content

Commit

Permalink
Small update
Browse files Browse the repository at this point in the history
  • Loading branch information
otociulis committed Nov 5, 2024
1 parent 262b687 commit 43db4ce
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
1 change: 0 additions & 1 deletion src/config/comfySettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ export class ComfySettings {
fs.writeFileSync(this.filePath, JSON.stringify(this.settings), 'utf-8');
} catch (error) {
log.error(`Failed to save settings to ${this.filePath}:`, error);
return {};
}
}

Expand Down
20 changes: 10 additions & 10 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,17 +114,17 @@ if (!gotTheLock) {

let sendCrashReport = comfySettings.sendCrashStatistics;

if (!sendCrashReport) {
const { response } = await dialog.showMessageBox({
title: 'Send Crash Statistics',
message: `Would you like to send crash statistics to the team?`,
buttons: ['Always send crash reports', 'Do not send crash report'],
});

sendCrashReport = response === 0;
}
if (!sendCrashReport) {
const { response } = await dialog.showMessageBox({
title: 'Send Crash Statistics',
message: `Would you like to send crash statistics to the team?`,
buttons: ['Always send crash reports', 'Do not send crash report'],
});

sendCrashReport = response === 0;
}

return sendCrashReport ? event : null;
return sendCrashReport ? event : null;
},
integrations: [
Sentry.childProcessIntegration({
Expand Down

0 comments on commit 43db4ce

Please sign in to comment.