Skip to content
Permalink
Browse files

Update ManagedFileChooserViewModel.cs

  • Loading branch information...
danwalmsley committed Nov 8, 2019
1 parent a3712ed commit 684216c6e9c405480482cc803f719473a1e08f74
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/Avalonia.Dialogs/ManagedFileChooserViewModel.cs
@@ -210,7 +210,12 @@ private async void OnSelectionChangedAsync(object sender, NotifyCollectionChange

if (!_selectingDirectory)
{
FileName = SelectedItems.FirstOrDefault()?.DisplayName;
var selectedItem = SelectedItems.FirstOrDefault();

if (selectedItem != null)
{
FileName = selectedItem.DisplayName;
}
}
}
}

0 comments on commit 684216c

Please sign in to comment.
You can’t perform that action at this time.