mirror of
https://github.com/Sude-/lgogdownloader.git
synced 2025-02-02 05:52:31 +01:00
Fix --download-file option not showing progress bar
This commit is contained in:
parent
695916af4c
commit
ab3a2019e4
@ -1120,7 +1120,9 @@ CURLcode Downloader::downloadFile(const std::string& url, const std::string& fil
|
||||
curl_easy_setopt(curlhandle, CURLOPT_URL, url.c_str());
|
||||
curl_easy_setopt(curlhandle, CURLOPT_WRITEDATA, outfile);
|
||||
curl_easy_setopt(curlhandle, CURLOPT_FILETIME, 1L);
|
||||
curl_easy_setopt(curlhandle, CURLOPT_NOPROGRESS, 0);
|
||||
res = this->beginDownload();
|
||||
curl_easy_setopt(curlhandle, CURLOPT_NOPROGRESS, 1);
|
||||
|
||||
fclose(outfile);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user