"Are you sure you want to close the sketch?" message when doing "Save as" with dirty sketch #38
Labels
conclusion: resolved
Issue was resolved
criticality: medium
Of moderate impact
priority: high
Resolution is a high priority
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Describe the bug
If a "Save As..." is done when the sketch is in an unsaved (AKA "dirty") state, the IDE presents an unexpected "Are you sure you want to close the sketch?" dialog.
Regardless of which choice the user selects in the dialog, the resulting sketch files do not contain the unsaved changes that were in the editor.
To Reproduce
An "Are you sure you want to close the sketch?" message is shown unexpectedly, since you did not do anything that would be considered a close operation.
The IDE window now closes.
It is not!
An "Are you sure you want to close the sketch?" message is shown unexpectedly, since you did not do anything that would be considered a close operation.
It is not!
Expected behavior
The exact contents of the sketch that is open in the editor are always saved to the sketch specified via the "Save As..." operation, regardless of dirty state.
No "Are you sure you want to close the sketch?" dialog is shown during this procedure.
The currently open sketch is replaced by the new sketch created by the "Save As..." process, just as it does after "Save As..." with a non-dirty sketch.
Desktop
Date: 2021-12-03T11:09:57.266Z
CLI Version: 0.20.1 [abb21449]
Additional context
[ originally reported by @per1234 ]
The text was updated successfully, but these errors were encountered: