trivial: Ensure the progressbar gets to exactly 100% when downloading

This commit is contained in:
Richard Hughes 2023-02-15 16:54:44 +00:00
parent 205ffb5eac
commit 11cd52f58d

View File

@ -5134,6 +5134,7 @@ fwupd_client_download_http(FwupdClient *self, CURL *curl, const gchar *url, GErr
(void)curl_easy_setopt(curl, CURLOPT_WRITEDATA, buf); (void)curl_easy_setopt(curl, CURLOPT_WRITEDATA, buf);
res = curl_easy_perform(curl); res = curl_easy_perform(curl);
fwupd_client_set_status(self, FWUPD_STATUS_IDLE); fwupd_client_set_status(self, FWUPD_STATUS_IDLE);
fwupd_client_set_percentage(self, 100);
if (res != CURLE_OK) { if (res != CURLE_OK) {
if (errbuf[0] != '\0') { if (errbuf[0] != '\0') {
g_set_error(error, g_set_error(error,