-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SaveFilePickerAsync select overwritefile, return result is null #17959
Comments
Are you getting this every time? It seems to work fine when I try it. Note that if you select 'No' in the Confirm Save As dialog when it asks 'Do you want to replace it?' and then click Cancel or otherwise close the Save File dialog, it is correct/intended behaviour for the result to be null. |
Ah OK, I was using the Avalonia.Win32.Win32StorageProvider which works, but if I switch to the Avalonia.Dialogs.ManagedStorageProvider (by adding .UseManagedSystemDialogs() to my BuildAvaloniaApp()) Same behavior already in Avalonia 11.2.1 A possible workaround would be to switch to the native StorageProvider until it gets fixed, if that is possible for you. |
Thank you very much. |
Describe the bug
SaveFilePickerAsync select overwritefile, return result is null
To Reproduce
var result = await storageProvider.SaveFilePickerAsync(new FilePickerSaveOptions
{
Title = "保存文件",
SuggestedFileName = fileName
});
return result?.Path.AbsolutePath ?? "";
Expected behavior
No response
Avalonia version
11.2.3
OS
Windows
Additional context
No response
The text was updated successfully, but these errors were encountered: