No confirmation on closing window with unsaved changes #862
Labels
conclusion: resolved
Issue was resolved
criticality: highest
Of highest impact
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Describe the bug
Unsaved changes to the sketch will be lost when closing the window. For this reason, the IDE must request confirmation from the user before proceeding, as is the standard convention for any application.
🐛 The IDE closes without confirmation even when the sketch has unsaved changes. This may cause loss of data for users who expect the standard "save and quit" behavior.
To Reproduce
❗ Do not save the sketch.
🐛 The window closes immediately and all unsaved changes are lost.
Expected behavior
Confirmation dialog when closing IDE window with unsaved changes.
Desktop
Original
Date: 2022-02-23T15:40:32.443Z
CLI Version: 0.21.0 [10107d24]
Last verified with
Date: 2022-03-09T10:47:19.505Z
CLI Version: 0.21.0 [10107d24]
Additional context
I bisected the bug to 112153f (it does not occur when using the build from the previous commit 69ac1f4).
The bug occurs no matter which method you use to close the window:
The bug also occurs with new sketches that have unsaved changes when the sketch is closed by these methods:
(There is a dialog on File > Close with a new dirty sketch)
Originally reported by @UKHeliBob at https://forum.arduino.cc/t/no-prompt-to-save-a-modified-file-when-closing-the-ide/962323
The text was updated successfully, but these errors were encountered: