Fix null file bug and add context menu to my ratings column
This commit is contained in:
parent
613cfdd903
commit
a7bf30954d
14 changed files with 118 additions and 144 deletions
|
|
@ -51,7 +51,7 @@ namespace LibationAvalonia.Dialogs
|
|||
{
|
||||
Title = $"Save Sover Image",
|
||||
SuggestedStartLocation = new Avalonia.Platform.Storage.FileIO.BclStorageFolder(Environment.GetFolderPath(Environment.SpecialFolder.MyPictures)),
|
||||
SuggestedFileName = $"{PictureFileName}.jpg",
|
||||
SuggestedFileName = PictureFileName,
|
||||
DefaultExtension = "jpg",
|
||||
ShowOverwritePrompt = true,
|
||||
FileTypeChoices = new FilePickerFileType[]
|
||||
|
|
@ -62,7 +62,7 @@ namespace LibationAvalonia.Dialogs
|
|||
|
||||
var selectedFile = await StorageProvider.SaveFilePickerAsync(options);
|
||||
|
||||
if (!selectedFile.TryGetUri(out var uri)) return;
|
||||
if (selectedFile?.TryGetUri(out var uri) is not true) return;
|
||||
|
||||
try
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue