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:
parent
d6829f5cb5
commit
b1865df443
@ -60,7 +60,12 @@ namespace Artemis.Core
|
|||||||
{
|
{
|
||||||
using HttpClient client = new();
|
using HttpClient client = new();
|
||||||
await using FileStream destinationStream = new(FileName, FileMode.OpenOrCreate);
|
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)
|
void ProgressOnProgressReported(object? sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user