diff --git a/src/config/comfySettings.ts b/src/config/comfySettings.ts index 8c234ee5..88c49787 100644 --- a/src/config/comfySettings.ts +++ b/src/config/comfySettings.ts @@ -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 {}; } } diff --git a/src/main.ts b/src/main.ts index 0fc36a12..c689144d 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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({