Browse Source

fix null returned when user choose to overwrite file (#18076)

pull/18092/head
FishEagle 2 years ago
committed by GitHub
parent
commit
874c99fa5d
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      src/Avalonia.Dialogs/ManagedStorageProvider.cs

2
src/Avalonia.Dialogs/ManagedStorageProvider.cs

@ -116,6 +116,7 @@ internal class ManagedStorageProvider : BclStorageProvider
{ {
if (await ShowOverwritePrompt(filename, window)) if (await ShowOverwritePrompt(filename, window))
{ {
result = [filename];
window.Close(); window.Close();
} }
}; };
@ -165,6 +166,7 @@ internal class ManagedStorageProvider : BclStorageProvider
{ {
if (await ShowOverwritePrompt(filename, root)) if (await ShowOverwritePrompt(filename, root))
{ {
result = [filename];
popup.Close(); popup.Close();
} }
}; };

Loading…
Cancel
Save