1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2025-12-13 05:48:35 +00:00

Prerequisites - Set status while retrieving download url

This commit is contained in:
Diogo Trindade 2021-06-08 22:32:38 +01:00
parent d6829f5cb5
commit b1865df443

View File

@ -60,7 +60,12 @@ namespace Artemis.Core
{
using HttpClient client = new();
await using FileStream destinationStream = new(FileName, FileMode.OpenOrCreate);
string url = Url ?? await UrlFunction();
string? url = Url;
if (url is null)
{
Status = "Retrieving download URL";
url = await UrlFunction!();
}
void ProgressOnProgressReported(object? sender, EventArgs e)
{