Skip to content
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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

oto-ciulis-tt
Copy link
Collaborator

@oto-ciulis-tt oto-ciulis-tt commented Dec 1, 2024

┆Issue is synchronized with this Notion page by Unito

Copy link
Member

@huchenlei huchenlei left a 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?

@@ -39,11 +41,16 @@ export class ComfySettings {
this.settings = JSON.parse(fileContent);
}

public saveSettings() {
fs.writeFileSync(this.filePath, JSON.stringify(this.settings), 'utf-8');
Copy link
Member

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.

@oto-ciulis-tt
Copy link
Collaborator Author

oto-ciulis-tt commented Dec 2, 2024

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?

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)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Save user preference for crashes after confirmation dialog
3 participants