Skip to content

Commit

Permalink
fix null returned when user choose to overwrite file (#18076)
Browse files Browse the repository at this point in the history
  • Loading branch information
FishEagle authored Jan 30, 2025
1 parent 5f0ae7f commit 874c99f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Avalonia.Dialogs/ManagedStorageProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ private async Task<string[]> ShowAsWindow(Window window, ManagedFileChooserViewM
{
if (await ShowOverwritePrompt(filename, window))
{
result = [filename];
window.Close();
}
};
Expand Down Expand Up @@ -165,6 +166,7 @@ private async Task<string[]> ShowAsPopup(ContentControl root, ManagedFileChooser
{
if (await ShowOverwritePrompt(filename, root))
{
result = [filename];
popup.Close();
}
};
Expand Down

0 comments on commit 874c99f

Please sign in to comment.