From 8494de283949d640f6e9da7d44edaeefc3bfd930 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sun, 3 Mar 2024 16:58:05 +0100 Subject: loading spinner while searching --- src/main_windows.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/main_windows.cpp') 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; } -- cgit v1.2.3-70-g09d2