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

Frozen "Save File" dialog (mac os) #49

Open
feresr opened this issue Oct 25, 2020 · 2 comments
Open

Frozen "Save File" dialog (mac os) #49

feresr opened this issue Oct 25, 2020 · 2 comments

Comments

@feresr
Copy link

feresr commented Oct 25, 2020

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
Copy link
Author

feresr commented Oct 25, 2020

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

@LiangliangNan
Copy link

Ha, I had the same issue.

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