From 8c0983ace1186c263094cd8b2aa4e93ea18d86e7 Mon Sep 17 00:00:00 2001 From: Aetopia <41850963+Aetopia@users.noreply.github.com> Date: Tue, 13 Aug 2024 16:40:04 +0530 Subject: [PATCH] Use list index instead. --- src/MainWindow.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MainWindow.cs b/src/MainWindow.cs index 187c753..4e0d054 100644 --- a/src/MainWindow.cs +++ b/src/MainWindow.cs @@ -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); }