Skip to content

Commit

Permalink
fix:Index out of bounds.
Browse files Browse the repository at this point in the history
  • Loading branch information
WCKYWCKF committed Jan 13, 2025
1 parent d3aa632 commit a9bc250
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Ursa/Controls/PathPicker/PathPicker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs chang
{
_twoConvertLock = true;
var stringBuilder = new StringBuilder();
stringBuilder.Append(SelectedPaths[0]);
stringBuilder.Append(SelectedPaths.Count != 0 ? SelectedPaths[0] : string.Empty);
foreach (var item in SelectedPaths.Skip(1))
{
stringBuilder.AppendLine(item);
Expand Down

0 comments on commit a9bc250

Please sign in to comment.