Skip to content
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

Inconsistent dialogs when exit would result in user data loss #1016

Closed
3 tasks done
per1234 opened this issue Jun 1, 2022 · 3 comments · Fixed by #1351
Closed
3 tasks done

Inconsistent dialogs when exit would result in user data loss #1016

per1234 opened this issue Jun 1, 2022 · 3 comments · Fixed by #1351
Assignees
Labels
conclusion: resolved Issue was resolved topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@per1234
Copy link
Contributor

per1234 commented Jun 1, 2022

Describe the problem

Under either of the following conditions, closing the Arduino IDE window would result in loss of sketch content:

  • New or example sketch staged in a temporary folder
  • Unsaved changes (user has disabled "Auto save")

As is standard for any application, the Arduino IDE notifies the user of this situation when they initiate a window close operation.

🐛 The presented dialogs are significantly different depending on which combination of the above conditions are present:

Saved New "will not be saved" dialog "Save your sketch" dialog
Y Y N Y
N Y Y Y
N N Y N

To reproduce

  1. Select File > Preferences... from the Arduino IDE menus.
  2. Check the box next to "☐ Auto save".
  3. Click the OK button.
  4. Select File > New from the Arduino IDE menus.
  5. Make any change to the sketch.
    ❗ Do not save the sketch.
  6. Select File > Close from the Arduino IDE menus.
    🙂 Dialog offering save is presented:
    image
  7. Click the Cancel button.
  8. Select File > Preferences... from the Arduino IDE menus.
  9. Uncheck the box next to " Auto save".
  10. Click the OK button.
  11. Make any change to the sketch.
    ❗ Do not save the sketch.
  12. Select File > Close from the Arduino IDE menus.
    🙁 Unintuitive and unhelpful "Any unsaved changes will not be saved" dialog appears:
    image
  13. Click the Yes button.
    😕 Dialog offering save is presented.
  14. Click the Cancel button.
  15. Select File > Save As... from the Arduino IDE menus.
  16. Save the sketch to any location and name you like.
  17. Make any change to the sketch.
    ❗ Do not save the sketch.
  18. Select File > Close from the Arduino IDE menus.
    🙁 Unintuitive and unhelpful "will not be saved" dialog appears.
  19. Click the Yes button.
    🐛 Standard dialog offering save is not presented.

Expected behavior

Always show only the "Save your sketch" dialog.

Eradicate the unintuitive (#677) and unhelpful (#170) "Any unsaved changes will not be saved" dialog from the IDE.

Arduino IDE version

2.0.0-rc6-snapshot-5b486b1

Operating system

Windows, Linux

Operating system version

Windows 10, Ubuntu 20.04

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details
@per1234 per1234 added topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project labels Jun 1, 2022
@kittaakos
Copy link
Contributor

Eradicate the unintuitive (#677) and unhelpful (#170) "Any unsaved changes will not be saved" dialog from the IDE.

Related #1018 (comment).

@ubidefeo
Copy link

@per1234
is this addressed in RC7?

@per1234
Copy link
Contributor Author

per1234 commented Jun 13, 2022

@ubidefeo no.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: resolved Issue was resolved topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants