summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrikboy@gmail.com>2024-03-30 19:33:01 +0100
committerAldrik Ramaekers <aldrikboy@gmail.com>2024-03-30 19:33:01 +0100
commit86f0b66beed7305c7cf9c08ec6e37ec1041c4ede (patch)
tree50224b22f8bf1f6f2fb17f9753363ea2c86721df /src/main.cpp
parent95e06b2f6d87b597a52029dbfa9896f4bd8ca74b (diff)
fix crash in release 2.3v2
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index a6e8dba..04cdfaf 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -56,10 +56,10 @@ static void _ts_create_popups(int window_w, int window_h) {
// Settings window
if (ImGui::BeginPopupModal("Text-Search settings", &open_settings_window, ImGuiWindowFlags_NoResize|ImGuiWindowFlags_NoMove)) {
ImGui::SetWindowSize({300, 0});
- ImGui::DragInt("Threads", (int*)&ts_thread_count, 0.1f, 1, 8);
+ 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", (int*)&max_file_size, 50.0f, 1, 10000, "%dMB");
+ ImGui::DragInt("File Size", &max_file_size, 50.0f, 1, 10000, "%dMB");
ImGui::SetItemTooltip("Files larger than this will not be searched");
ImGui::Dummy({0, 70});