Skip to content

Commit 3959b98

Browse files
committed
Use Index()
1 parent 9e3c33c commit 3959b98

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎YoutubeDownloader/ViewModels/Dialogs/DownloadMultipleSetupViewModel.cs‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,8 @@ private async Task ConfirmAsync()
7474
return;
7575

7676
var downloads = new List<DownloadViewModel>();
77-
for (var i = 0; i < SelectedVideos.Count; i++)
77+
foreach (var (i, video) in SelectedVideos.Index())
7878
{
79-
var video = SelectedVideos[i];
80-
8179
var baseFilePath = Path.Combine(
8280
dirPath,
8381
FileNameTemplate.Apply(

0 commit comments

Comments
 (0)