From e18efdde50783040c1080babb3a93289427f95b3 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Fri, 18 Mar 2022 05:04:17 +0000 Subject: [PATCH] download package manager update display progress only when there is download occuring --- Sources/Gui/PackageUpdateManager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sources/Gui/PackageUpdateManager.cpp b/Sources/Gui/PackageUpdateManager.cpp index 41311014d..ee7ea0a2e 100644 --- a/Sources/Gui/PackageUpdateManager.cpp +++ b/Sources/Gui/PackageUpdateManager.cpp @@ -145,7 +145,8 @@ namespace spades { curl.get(), CURLOPT_XFERINFOFUNCTION, static_cast( [](void *, curl_off_t total, curl_off_t downloaded, curl_off_t, curl_off_t) -> int { - SPLog("Downloaded %zd bytes/%zd bytes", downloaded, total); + if (total > 0) + SPLog("Downloaded %zd bytes/%zd bytes", downloaded, total); return 0; }));