-
Notifications
You must be signed in to change notification settings - Fork 57
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
set_directory
doesn't seem to change starting directory (Windows)
#22
Comments
Does For me rfd::FileDialog::new().set_directory("C:\\").pick_folder(); Works as expected in wine, I will check in a Windows VM some time later today |
Nope, any path I set as default, opens C:\Users\USER\Documents. I will test this code on another windows machine to check if error only occurs on mine. |
In nfd code I noticed this comment: // Could also call SetDefaultFolder(), but this guarantees defaultPath -- more consistency across API.
dialog->SetFolder( folder ); rfd uses setDefaut at the moment, I will add the second approach and I will let you know when it's ready for testing |
Ok, waiting for an update! P.S. I've checked the example code on another machine, it works. Apparently the issue is with my main machine; maybe I will try to figure out what leads to this error... |
You can try master branch, I implemented the change in 1696de8 I would appreciate if you could also check for regressions on the machines that it used to work on before my change |
It works now on both machines! Newest commit 11c9c95. I think you can release 0.4.4 now :) |
Thank you very much for help! I will release a patch release shortly |
Thank you for quick fix! |
This code:
opens my Documents directory for some reason
The text was updated successfully, but these errors were encountered: