-
-
Notifications
You must be signed in to change notification settings - Fork 433
#411 Fixed bug when saving sketch as. Made native file dialogs modal. #1322
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
Conversation
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.
It is working fine for me on both Windows and Linux. However, some things were not clear to me:
fixes the default location when saving a sketch as
What was the bug @kittaakos? Was it that the IDE did not follow this behavior?:
If the sketch is in a nested folder in the sketchbook, then the default location will be
directories/user/nested/location/sketch_$current_date
.
That was the only difference I noticed related to default Save as location when comparing the build from this PR to the latest one from the main
branch.
I could not reproduce the defect described #411 (comment) and #411 (comment).
Closes #411.
It is not clear to me how it is considered as fixing #411 Would you mind providing more information about how the changes made in this PR are related to that issue?
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.
Code-wise approved.
I am also willing to approve this (though I would like to give it another try after a rebase). I only wanted to make sure I fully understand the intention and context so that I would not omit an important "assertion" in my manual testing. |
Signed-off-by: Akos Kitta <[email protected]>
f5be9d3
to
066b767
Compare
Signed-off-by: Akos Kitta <[email protected]>
Yes. If there is a sketch under IDE 2.0.0: default_save_as_location_2.0.0.mp4With the fix, the IDE from PR: default_save_as_location_PR.mp4The other change is the use of modal dialogs in IDE2. Please review. Thank you! |
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 again that the switch to modal file dialogs and more convenient default "Save As" location works correctly on both Windows and Linux.
Thanks Akos!
Motivation
This PR is the outcome of the investigation of #411. This PR fixes the default location when saving a sketch as. From now on, every native file dialog is modal.
Change description
Noteworthy changes:
directories/user/sketch_$current_date
,save_as__temp.mp4
directories/user/sketch
, then the default location will bedirectories/user/sketch_copy_date
,save_as__in_sketchbook.mp4
directories/user/sketch_$current_date
,save_as__outside_sketchbook.mp4
directories/user/nested/location/sketch_$current_date
.save_as__nested_in_sketchbook.mp4
Other information
I could not reproduce the defect described here and here.
Reviewer checklist