Repository navigation
feat(HUB-8606): let a folder picker open in a given folder - #21
Merged
coreyleeunity merged 2 commits intoOct 29, 2026
Merged
Conversation
PathPromptOptions gets an optional start folder. Each platform's open dialog applies it the way its save dialog already does: macOS setDirectoryURL, Windows IFileDialog::SetFolder, Linux portal current_folder. None keeps today's behavior.
…8606) OpenFileRequest::current_folder takes impl Into<Option<P>>, and an Option<&Path> converts into Option<P> two ways, so rustc can't pick P.
coreyleeunity
marked this pull request as ready for review
October 29, 2026 17:02
chris-addison
approved these changes
Oct 29, 2026
chris-addison
left a comment
Collaborator
There was a problem hiding this comment.
LGTM thanks for fixing it!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Folder pickers can now open in a chosen folder.
PathPromptOptionsgetsdirectory: Option<PathBuf>. Each platform's open dialog applies it the way its save dialog already does: macOSsetDirectoryURL, WindowsIFileDialog::SetFolder, Linux portalcurrent_folder.Nonekeeps today's behavior.Why: Unity Hub's Settings location pickers should open at the configured path (HUB-8606).
Breaking: code that builds
PathPromptOptionsfield by field needs the new field.Checks: the macOS build and the path-prompt tests pass locally. Windows and Linux were not built locally.