Skip to content

Commit 874c99f

Browse files
authored
fix null returned when user choose to overwrite file (#18076)
1 parent 5f0ae7f commit 874c99f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Avalonia.Dialogs/ManagedStorageProvider.cs

+2
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ private async Task<string[]> ShowAsWindow(Window window, ManagedFileChooserViewM
116116
{
117117
if (await ShowOverwritePrompt(filename, window))
118118
{
119+
result = [filename];
119120
window.Close();
120121
}
121122
};
@@ -165,6 +166,7 @@ private async Task<string[]> ShowAsPopup(ContentControl root, ManagedFileChooser
165166
{
166167
if (await ShowOverwritePrompt(filename, root))
167168
{
169+
result = [filename];
168170
popup.Close();
169171
}
170172
};

0 commit comments

Comments
 (0)