Skip to content
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

Select folder don't show on windows (mingw64) #87

Open
raiseFlaymeException opened this issue Apr 2, 2023 · 1 comment
Open

Select folder don't show on windows (mingw64) #87

raiseFlaymeException opened this issue Apr 2, 2023 · 1 comment

Comments

@raiseFlaymeException
Copy link

I tried this library, it's really great but select folder don't show when I run the function (the programm don't crash it just wait).

I tried the file "example.cpp" every function work except for select_folder.

I also tried this code from the doc:

// Folder selection dialog
auto dialog = pfd::select_folder("Select folder to open");

// Do something while waiting for user input
while (!dialog.ready(1000))
    std::cout << "Waited 1 second for user input...\n";

// Act depending on the user choice
std::cout << "Selected folder: " << dialog.result() << "\n";

Thanks for the help,
Flayme

(Sorry for my poor english)

@hdclark
Copy link

hdclark commented Oct 8, 2024

I can reproduce using the MXE toolchain, which uses MinGW-w64. All dialogs seem to work, except select_folder hangs forever.

hdclark pushed a commit to hdclark/DICOMautomaton that referenced this issue Oct 9, 2024
The PFD version works except on Windows, where it hangs forever. This would be difficult to detect.
See samhocevar/portable-file-dialogs#87 .

Note that this selector is incomplete. It uses powershell and zenity, so it lacks Apple support unless zenity is
present.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants