summaryrefslogtreecommitdiff
path: root/src/main_windows.cpp
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrikboy@gmail.com>2024-03-03 16:58:05 +0100
committerAldrik Ramaekers <aldrikboy@gmail.com>2024-03-03 16:58:05 +0100
commit8494de283949d640f6e9da7d44edaeefc3bfd930 (patch)
tree18a94e85e9f993c943e4a96ce4958f6331bfaf5f /src/main_windows.cpp
parentb8d8eaa8b2c46f79e8a580a402ec7c472075d073 (diff)
loading spinner while searching
Diffstat (limited to 'src/main_windows.cpp')
-rw-r--r--src/main_windows.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main_windows.cpp b/src/main_windows.cpp
index 5b98eed..d0db43e 100644
--- a/src/main_windows.cpp
+++ b/src/main_windows.cpp
@@ -300,6 +300,12 @@ static void *_list_files_thread(void *args)
ts_search_result *info = (ts_search_result *)args;
ts_platform_list_files_block(info, nullptr);
info->done_finding_files = true;
+
+ while (!info->search_completed) {
+ if (info->completed_match_threads == info->max_ts_thread_count) {
+ info->search_completed = true;
+ }
+ }
return 0;
}