Browse Source
Update ManagedFileChooserViewModel.cs
pull/3232/head
danwalmsley
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
1 deletions
-
src/Avalonia.Dialogs/ManagedFileChooserViewModel.cs
|
|
|
@ -210,7 +210,12 @@ namespace Avalonia.Dialogs |
|
|
|
|
|
|
|
if (!_selectingDirectory) |
|
|
|
{ |
|
|
|
FileName = SelectedItems.FirstOrDefault()?.DisplayName; |
|
|
|
var selectedItem = SelectedItems.FirstOrDefault(); |
|
|
|
|
|
|
|
if (selectedItem != null) |
|
|
|
{ |
|
|
|
FileName = selectedItem.DisplayName; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|