Skip to content

Prompting to save before quit also for new files #139

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

Merged
merged 2 commits into from
Nov 7, 2024

Conversation

murilopolese
Copy link
Contributor

Context

When the editor opens it creates an "empty" file and show that to the user at start.
When closing the editor, it will check for unsaved changes on the opened tabs and prompt the user if they are really sure they want to quit.

Problem

image

The new file that appears at the start of the editor is not part of the "check for unsaved changes" because that file has never been saved. Apparently this is due people thinking they had saved their code using "cmd+s" or "ctrl+s".

Solution

When quitting the app, include the "new files" on the check for unsaved changes.

@murilopolese murilopolese requested a review from ubidefeo November 7, 2024 15:14
Copy link
Collaborator

@ubidefeo ubidefeo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested and approved

@murilopolese murilopolese merged commit b3b91f5 into development Nov 7, 2024
1 check passed
@murilopolese murilopolese deleted the bugfix/prompt-to-save-before-quit branch November 7, 2024 15:36
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.

2 participants