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

fix: Not being able to close certain modal popups with the close button on the title bar #1659

Merged
merged 1 commit into from
May 9, 2024

Conversation

SparkyTD
Copy link
Contributor

@SparkyTD SparkyTD commented May 9, 2024

Problem description

When the close button is clicked, ImGui::BeginPopupModal() sets the bool passed into the second parameter (p_open) to false. However, the closing logic did not take this into account, making it difficult to actually close modal popups.

For example, closing the "Export pattern File" modal took several clicks on the "X" button, now it closes instantly.

Implementation description

I added an additional check for the open variable being false in the logic that checks the closing condition.

…on on the title bar

For example, closing the "Export pattern File" modal took several clicks on the "X" button, now it closes instantly.

When the close button is clicked, `ImGui::BeginPopupModal()` sets the bool passed into the second parameter (p_open) to false. However, the closing logic did not take this into account, making it difficult to actually close modal popups.
@WerWolv WerWolv merged commit ea0cafa into WerWolv:master May 9, 2024
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

Successfully merging this pull request may close these issues.

None yet

2 participants