You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
I want to obtain the replaced path for displaying in the TextBoxWhen it asks 'Do you want to replace it?',I select Confirm
replace it,But the return result is 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())
then I am getting the same error, with the null returned when I choose to replace the file - so I believe this is something that needs to be fixed.
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.
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: