mirror of
https://git.proxmox.com/git/fwupd
synced 2025-07-27 00:00:47 +00:00
trivial: Ensure the progressbar gets to exactly 100% when downloading
This commit is contained in:
parent
205ffb5eac
commit
11cd52f58d
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user