From 11cd52f58d399d0a73aadbd9f747a9da4d11ec1d Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Wed, 15 Feb 2023 16:54:44 +0000 Subject: [PATCH] trivial: Ensure the progressbar gets to exactly 100% when downloading --- libfwupd/fwupd-client.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libfwupd/fwupd-client.c b/libfwupd/fwupd-client.c index 02b35c029..d9ab8f5d4 100644 --- a/libfwupd/fwupd-client.c +++ b/libfwupd/fwupd-client.c @@ -5134,6 +5134,7 @@ fwupd_client_download_http(FwupdClient *self, CURL *curl, const gchar *url, GErr (void)curl_easy_setopt(curl, CURLOPT_WRITEDATA, buf); res = curl_easy_perform(curl); fwupd_client_set_status(self, FWUPD_STATUS_IDLE); + fwupd_client_set_percentage(self, 100); if (res != CURLE_OK) { if (errbuf[0] != '\0') { g_set_error(error,