Skip to content

If autosave is on, user is not prompted to "save as..." when closing a newly created sketch or edited example.  #595

Closed
@91volt

Description

@91volt

Describe the bug
If autosave is enabled, when closing for the first time edited examples and newly created sketches the user is not prompted to 'save as...', as consequence is not aware of the location of the sketch and may think he lost his work (when actually is stored in temporary folder).

To Reproduce
Steps to reproduce the behavior (closing from the interface top bar's red quitting icon):

  1. Go to 'Arduino IDE (macOS) / File (windowsOS)'
  2. Click on 'Preferences'
  3. Enable 'auto save' clicking on the checkbox
  4. Go to 'File'
  5. Click on 'New sketch'
  6. Add some code
  7. Click the OS top bar's red quitting icon

Steps to reproduce the behavior (closing the whole Arduino IDE through top bar menu):

  1. Go to 'Arduino IDE (MacOS) / File (WindowsOS)'
  2. Click on 'Preferences'
  3. Enable 'auto save' clicking on the checkbox
  4. Go to 'File'
  5. Click on 'New sketch'
  6. Add some code
  7. Go to 'Arduino IDE (MacOS) / File (WindowsOS)'
  8. Click on 'Quit Arduino IDE (MacOS) / Quit (windowsOS)'

Steps to reproduce the behavior (closing the whole Arduino IDE through shortcut):

  1. Go to 'Arduino IDE (MacOS) / File (WindowsOS)'
  2. Click on 'Preferences'
  3. Enable 'auto save' clicking on the checkbox
  4. Go to 'File'
  5. Click on 'New sketch'
  6. Add some code
  7. Press key combination 'CMD / Ctrl + Q'

Expected behavior
When autosave is enabled, when closing for the first time a newly created sketch or edited example I expect the IDE to warn me with a dialog box with "Save as...", "don't save", "cancel" call to actions.

Screenshots
AutosaveON_examplesketch_closing

Desktop (please complete the following information):

  • OS: All
  • Version: 2.0.0 beta12

Additional context
The expected behavior is working when closing the workspace through shortcut 'CMD / Ctrl + W' or going to 'File' and clicking 'Close'.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions