zii-dmg
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
src/Avalonia.X11/NativeDialogs/GtkNativeFileDialogs.cs
|
|
@ -45,7 +45,7 @@ namespace Avalonia.X11.NativeDialogs |
|
|
var res = await ShowDialog(options.Title, _window, GtkFileChooserAction.Open, |
|
|
var res = await ShowDialog(options.Title, _window, GtkFileChooserAction.Open, |
|
|
options.AllowMultiple, options.SuggestedStartLocation, null, options.FileTypeFilter, null, false) |
|
|
options.AllowMultiple, options.SuggestedStartLocation, null, options.FileTypeFilter, null, false) |
|
|
.ConfigureAwait(false); |
|
|
.ConfigureAwait(false); |
|
|
return res?.Select(f => new BclStorageFile(new FileInfo(f))).ToArray() ?? Array.Empty<IStorageFile>(); |
|
|
return res?.Where(f => File.Exists(f)).Select(f => new BclStorageFile(new FileInfo(f))).ToArray() ?? Array.Empty<IStorageFile>(); |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|