portable-file-dialogs icon indicating copy to clipboard operation
portable-file-dialogs copied to clipboard

Frozen "Save File" dialog (mac os)

Open feresr opened this issue 3 years ago • 2 comments

Thanks for this great library, I love how quick and simple it is, I'm having some trouble with the save dialog option:

if (ImGui::MenuItem("Save as...")) {
              auto destination = pfd::save_file("Select a scene file", currentScenePath).result();
              if (!destination.empty()) Application::getSceneManager().saveScene(destination);
}

The save dialog shows up correctly, but upon clicking "save" it freezes for several seconds. After waiting for a while it becomes active again (meaning you can type and click the buttons). Clicking again save repeats the process (gets frozen). The same thing happens if you click `cancel instead. The file never gets written/saved

Screen Shot 2020-10-25 at 13 57 41 Screen Shot 2020-10-25 at 13 54 44

feresr avatar Oct 25 '20 17:10 feresr

More info: It looks to work OK when choosing an existing file (overwrite)

feresr avatar Oct 25 '20 17:10 feresr

Ha, I had the same issue.

LiangliangNan avatar Oct 30 '20 10:10 LiangliangNan