diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-03-07 21:01:25 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-03-07 21:01:25 +0100 |
| commit | 41b2673e5819b1a1b6bd2734caa1ed705f11cddb (patch) | |
| tree | a7e108b71b6a57542593abb2527814f005628a7a /src | |
| parent | a981b1bc8bc549ec60bc1facf86cf2b2a3e3f159 (diff) | |
add close buttons to about and settings page
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index 3b23ad0..fd88a50 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -34,7 +34,7 @@ static void _ts_create_popups() { } // Settings window - if (ImGui::BeginPopupModal("Text-Search settings", NULL, ImGuiWindowFlags_NoResize|ImGuiWindowFlags_NoMove)) { + if (ImGui::BeginPopupModal("Text-Search settings", &open_settings_window, ImGuiWindowFlags_NoResize|ImGuiWindowFlags_NoMove)) { ImGui::SetWindowSize({300, 0}); ImGui::DragInt("Threads", &ts_thread_count, 0.1f, 1, 8); ImGui::SetItemTooltip("Number of threads used to search for text matches"); @@ -59,7 +59,7 @@ static void _ts_create_popups() { } // About window - if (ImGui::BeginPopupModal("About Text-Search", NULL, ImGuiWindowFlags_NoResize|ImGuiWindowFlags_NoMove)) { + if (ImGui::BeginPopupModal("About Text-Search", &open_about_window, ImGuiWindowFlags_NoResize|ImGuiWindowFlags_NoMove)) { ImGui::SetWindowSize({600, 420}); char* name = "Text-Search"; |
