From cbbfecc0ffd167b15a5fd43bc49152fc858e03b1 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Fri, 28 Nov 2025 12:57:44 +1000 Subject: [PATCH] HTTPDownloader: Set initial indeterminate state --- src/util/http_downloader.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/util/http_downloader.cpp b/src/util/http_downloader.cpp index 96b08d7b9..c29cc97d6 100644 --- a/src/util/http_downloader.cpp +++ b/src/util/http_downloader.cpp @@ -45,6 +45,13 @@ void HTTPDownloader::CreateRequest(std::string url, Request::Callback callback, req->progress = progress; req->start_time = Timer::GetCurrentValue(); + // set progress state to indeterminate until we know the size + if (req->progress) + { + req->progress->SetProgressRange(0); + req->progress->SetProgressValue(0); + } + std::unique_lock lock(m_pending_http_request_lock); if (LockedGetActiveRequestCount() < m_max_active_requests) {