-
-
Notifications
You must be signed in to change notification settings - Fork 391
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
#1016, #1274 Aligned the "Save your sketch" dialog behavior #1351
Conversation
@kittaakos |
@ubidefeo, but there is a sketch to open 👆 , the first one from the Sketchbook. If you delete |
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.
Describe the problem
Sketch tab becomes closable after rename.
To reproduce
- Click the ●●● icon on the right side of the editor toolbar.
- Select "New Tab" from the menu.
- In the "Name for new file" field, type
foo
- Click the OK button.
🙂 The "foo.ino" tab does not have an X icon. - Click the ●●● icon on the right side of the editor toolbar.
- Select "Rename" from the menu.
- In the "New name for file" field, type
bar.ino
🐛 The "bar.ino" tab has an X icon.
Arduino IDE version
2.0.0-rc9.2.snapshot-948a6ed (tester build for 9a2d13f)
Operating system
Windows 10
I have tried it, and the IDE (1.x) opens the example. Steps to reproduce:
The IDE2 never behaved like this 👆 . |
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.
Describe the problem
Regression of #831
Closability of tabs for files in the src
subfolder was lost.
To reproduce
- Put this "HasSrcFolder" sketch to your sketchbook: HasSrcFolder.zip
- Open the "HasSrcFolder" sketch in the Arduino IDE.
- Select File > Preferences... from the Arduino IDE menus.
- Check the box next to "☐ Show files inside Sketches".
- Click the OK button.
- Open the "Sketchbook" view.
- Click on HasSrcFolder/src/InSrcFolder.cpp
🐛 There is no X icon on the InSrcFolder.cpp tab.
Expected behavior
Tabs for files in the src
subfolder are closable, as is the behavior of the IDE build from the main
branch:
Arduino IDE version
2.0.0-rc9.2.snapshot-948a6ed (tester build for 9a2d13f)
Operating system
Windows 10
Additional context
See #831 for details on why closability of these files specifically is needed.
See #946 for the original code change that enabled this closability.
@kittaakos |
Thank you for the steps, Per. Both issues should be fixed now. |
Signed-off-by: Akos Kitta <[email protected]>
Signed-off-by: Akos Kitta <[email protected]>
Signed-off-by: Akos Kitta <[email protected]>
Signed-off-by: Akos Kitta <[email protected]>
Signed-off-by: Akos Kitta <[email protected]>
and then the window. Signed-off-by: Akos Kitta <[email protected]>
Signed-off-by: Akos Kitta <[email protected]>
Signed-off-by: Akos Kitta <[email protected]>
Closes #660 Signed-off-by: Akos Kitta <[email protected]>
Signed-off-by: Akos Kitta <[email protected]>
Closes #1034. Signed-off-by: Akos Kitta <[email protected]>
Signed-off-by: Akos Kitta <[email protected]>
Signed-off-by: Akos Kitta <[email protected]>
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.
I verified that it fixes all targeted issues:
- [UI] The dirty/close decorator is broken in IDE #1034
- Inconsistent dialogs when exit would result in user data loss #1016
- Save as native file dialog pops when enabling auto-save on a temp sketch #994
- Remove **File > Close Editor** menu item #660
- Save dialog when closing app without changing sketches #1274 / Example files - ask to save even if no changes were made to them. #1026
As well as the two problems I reported via my previous reviews:
Motivation
Change description
Other information
Closes #1016
Closes #1274
Closes #1026
Closes #660
Closes #1034
Closes #994
Reviewer checklist