bugfix. file extension

This commit is contained in:
Robert McRackan 2022-12-13 16:09:24 -05:00
parent f65cd39040
commit f2ea02ae0b

View File

@ -106,11 +106,11 @@ namespace LibationAvalonia.Views
{ {
try try
{ {
var openFileDialog = new OpenFileDialog() var openFileDialog = new OpenFileDialog
{ {
Title = $"Locate the audio file for '{entry.Book.Title}'", Title = $"Locate the audio file for '{entry.Book.Title}'",
Filters = new() { new() { Name = "All files (*.*)", Extensions = new() { "|*.*" } } }, Filters = new() { new() { Name = "All files (*.*)", Extensions = new() { "*" } } },
AllowMultiple= false AllowMultiple = false
}; };
var filePaths = await openFileDialog.ShowAsync(this.GetParentWindow()); var filePaths = await openFileDialog.ShowAsync(this.GetParentWindow());
var filePath = filePaths.SingleOrDefault(); var filePath = filePaths.SingleOrDefault();