Browse Source
Merge pull request #9903 from SimonCropp/OpenFilePickerAsync-cant-return-null
OpenFilePickerAsync cant return null
pull/9949/head
Max Katz
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
5 deletions
-
samples/ControlCatalog/ViewModels/ContextPageViewModel.cs
|
|
|
@ -56,12 +56,9 @@ namespace ControlCatalog.ViewModels |
|
|
|
|
|
|
|
var result = await window.StorageProvider.OpenFilePickerAsync(new Avalonia.Platform.Storage.FilePickerOpenOptions() { AllowMultiple = true }); |
|
|
|
|
|
|
|
if (result != null) |
|
|
|
foreach (var file in result) |
|
|
|
{ |
|
|
|
foreach (var file in result) |
|
|
|
{ |
|
|
|
System.Diagnostics.Debug.WriteLine($"Opened: {file.Name}"); |
|
|
|
} |
|
|
|
System.Diagnostics.Debug.WriteLine($"Opened: {file.Name}"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|