Skip to content

Commit

Permalink
Use list index instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aetopia committed Aug 13, 2024
1 parent 2fed7fa commit 8c0983a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ await Task.Run(() =>
for (int index = 0; index < _.Count; index++)
{
textBlock2.Text = index != 1 ? $"{index + 1} / {_.Count}":null;
textBlock2.Text = _.Count != 1 ? $"{index + 1} / {_.Count}" : null;
if (_[index].Path.Length != 0) Directory.CreateDirectory(_[index].Path);
await client.DownloadFileTaskAsync(_[index].Url, _[index].File);
}
Expand Down

0 comments on commit 8c0983a

Please sign in to comment.