diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-03-05 19:16:25 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-03-05 19:16:25 +0100 |
| commit | f3401ce1532938fec63d22095ca8b14affcfdce3 (patch) | |
| tree | 5c9416ce12d12b90ed5a7d467b84ee279c04d791 /src/main.cpp | |
| parent | 6b492daddd682de986e3f983ecfc1d29ed70b0a0 (diff) | |
exit button working
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp index e5b4fd3..eb9cee4 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -39,7 +39,7 @@ static void _ts_create_popups() { // Settings window if (ImGui::BeginPopupModal("Text-Search settings", NULL, ImGuiWindowFlags_NoResize|ImGuiWindowFlags_NoMove)) { ImGui::SetWindowSize({300, 0}); - ImGui::DragInt("Threads", &ts_thread_count, 1.0f, 1, 4); + ImGui::DragInt("Threads", &ts_thread_count, 0.1f, 1, 8); ImGui::SetItemTooltip("Number of threads used to search for text matches"); ImGui::DragInt("File Size", &max_file_size, 50.0f, 1, 10000, "%dMB"); @@ -96,10 +96,12 @@ static int _ts_create_menu() { { if (ImGui::BeginMenu("File")) { - ImGui::MenuItem("Open", "CTRL+O"); - ImGui::MenuItem("Save", "CTRL+S"); + //ImGui::MenuItem("Open", "CTRL+O"); + //ImGui::MenuItem("Save", "CTRL+S"); ImGui::Separator(); - ImGui::MenuItem("Exit", "CTRL+Q"); + if (ImGui::MenuItem("Exit")) { + program_running = false; + } ImGui::EndMenu(); } if (ImGui::BeginMenu("Program")) |
