1
0
mirror of synced 2024-11-28 17:40:51 +01:00
ImHex/main/gui/source
SparkyTD ea0cafa229
fix: Not being able to close certain modal popups with the close button on the title bar (#1659)
### 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.
2024-05-09 17:49:31 +02:00
..
init fix: Texture multisampling being used on OpenGL < 3.2 2024-05-08 22:09:47 +02:00
messaging fix: remove TODO + show error message when reading/write in process provider (#1516) 2024-01-26 18:44:52 +00:00
window fix: Not being able to close certain modal popups with the close button on the title bar (#1659) 2024-05-09 17:49:31 +02:00
crash_handlers.cpp impr: Only store paths with forward slashes in project files 2024-05-08 21:30:20 +02:00
main.cpp refactor: More cleanup of the main file 2024-02-11 13:46:06 +01:00
stacktrace.cpp build: Mark tryDemangle as [[maybe_unused]] (#1606) 2024-03-21 13:33:23 +01:00