Skip to content

Commit e781181

Browse files
committed
Feature: Improve folder tree selection code.
1 parent 840f5dc commit e781181

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CodeIngest.Desktop/MainViewModel.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// about your modifications. Your contributions are valued!
99
//
1010
// THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND.
11+
using System.Linq;
1112
using System.Threading.Tasks;
1213
using CodeIngestLib;
1314
using CSharp.Core.Extensions;
@@ -126,7 +127,7 @@ public MainViewModel(IDialogService dialogService = null)
126127

127128
public async Task RunIngest()
128129
{
129-
var selectedFolders = Root.GetSelectedItems();
130+
var selectedFolders = Root.GetSelectedItems().ToArray();
130131
if (selectedFolders.Length == 0)
131132
return; // Nothing to do.
132133

DTC.Core

0 commit comments

Comments
 (0)