-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Save changes before closing interaction. #12166
Save changes before closing interaction. #12166
Conversation
a9a36e5
to
70d1614
Compare
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.
@emilhammarstedtst thank you for the contribution 👍
I have some general comments about the dialog, mainly to align with the one present in VS Code and re-use some already existing localizations.
I believe that it is incorrect to default to the "Quit Without Saving" button which is selected by default. Pressing Enter should probably Save All
instead similarly to VS Code.
Please also be sure to properly fill out the pull-request description with "How To Test", for example I don't believe these changes apply to the browser as you have them today?
1361177
to
db1b421
Compare
Amended the commit with your suggestions and cleared up the "undefined"-leftover. I dont believe the browser is in question as it is bound to use the onbeforeunload method? |
dce369c
to
e7ea5ea
Compare
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.
Looks good to me 👍 I have 2 minor comments before merging though.
- Question to save all changes, cancel or discard all changes before closing - Display what is not yet saved. - Reorder options and reword the question and options to be clear of the outcome of each action - Implemented using ConfirmDialogSave extending ConfirmDialog Contributed by STMicroelectronics Signed-off-by: Emil Hammarstedt <[email protected]>
e7ea5ea
to
4aec3d4
Compare
@msujew do we want to merge for today's release? |
What it does
How to test
Electron build of theia and make one or more editors dirty then click the "X" to close the theia window. the popup should appear with a question to save.
Review checklist
Reminder for reviewers
Contributed by STMicroelectronics