-
-
Notifications
You must be signed in to change notification settings - Fork 380
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
Cache Save/Open Sprite Dialog's directory, and keep dialogs synced #559
Cache Save/Open Sprite Dialog's directory, and keep dialogs synced #559
Conversation
…right in Hue Shading mode
…ening Pixelorama they will be set to that directory. Load last project and load recent project also syncs with the open/save dialogs and caches that directory
…ure about) and if the export directory is blank, use the cached file directory
Maybe it might make sense to have a separate cached "export_dir" value for exporting files that don't have a saved project, rather than reusing the "file_dialog_dir" value, as some users will want to keep their projects and exported files seperate? |
Maybe "current_dir" would be a better name than "file_dialog_dir"? |
Hmm, I'm not sure what would be better. I like the current behavior of the PR. Unless there are disagreements, maybe we can keep what you made and change it in the future if users want to.
Yes I think it would be a better name. |
@OverloadedOrama Alright, changed the name to "current_dir". |
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.
Awesome, thank you!
Added to the cache file a "file_dialog_dir" value that can be used to set the Save/Open Sprite Dialog's current_dir when opening Pixelorama, as it can be a bit annoying to have to navigate to your game's project folder (or general art folder) each time you open Pixelorama.
Whenever you open a file from the Open Dialog or save a file from the Save Dialog, it sets the current_dir of the other, and sets the cache value.
When using "Open Last Project" or "Recent Projects" it will also set the current_dir of both Open and Save Dialogs, as well as sets the cache value.
For exporting files: