-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Save user preference for crashes after confirmation dialog #417
base: main
Are you sure you want to change the base?
feat: Save user preference for crashes after confirmation dialog #417
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does not seem right to me as we are bypassing frontend to directly manipulate settings json with electron code. Is it possible to move the dialog to the frontend?
src/config/comfySettings.ts
Outdated
@@ -39,11 +41,16 @@ export class ComfySettings { | |||
this.settings = JSON.parse(fileContent); | |||
} | |||
|
|||
public saveSettings() { | |||
fs.writeFileSync(this.filePath, JSON.stringify(this.settings), 'utf-8'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is very problematic as the file content can be newer than the snapshot state when we read it during electron app start.
I'm not sure I understand. The errors processed here for Sentry are Electron errors and crashes; if Electron is in erroneous or crashing state how can it communicate with frontend (assuming you mean ComfyUI-frontend)? |
┆Issue is synchronized with this Notion page by Unito