[Settings] 'Check for updates' button behavior changed (#4385)

This commit is contained in:
Seraphima Zykova
2020-06-23 15:53:02 +03:00
committed by GitHub
parent 87f0fcfd52
commit 5c1999b3d0
18 changed files with 460 additions and 87 deletions

View File

@@ -6,6 +6,7 @@
#include <common/common.h>
#include <common/updating/updating.h>
#include <common/updating/http_client.h>
#include <winrt/Windows.ApplicationModel.h>
#include <winrt/Windows.Storage.h>
@@ -164,7 +165,8 @@ bool install_dotnet()
{
try
{
updating::try_download_file(dotnet_download_path, download_link).wait();
http::HttpClient client;
client.download(download_link, dotnet_download_path).wait();
download_success = true;
break;
}