Browse Source

jsonignore uri & remove unused event handler

pull/629/head
JT 8 months ago
parent
commit
597c4c9aec
  1. 1
      StabilityMatrix.Avalonia/Models/ImageSource.cs
  2. 9
      StabilityMatrix.Avalonia/Views/PackageManager/PackageInstallBrowserView.axaml.cs

1
StabilityMatrix.Avalonia/Models/ImageSource.cs

@ -58,6 +58,7 @@ public record ImageSource : IDisposable, ITemplateKey<ImageSourceTemplateType>
Bitmap = bitmap;
}
[JsonIgnore]
public Uri? Uri => LocalFile?.FullPath != null ? new Uri(LocalFile.FullPath) : RemoteUrl;
/// <inheritdoc />

9
StabilityMatrix.Avalonia/Views/PackageManager/PackageInstallBrowserView.axaml.cs

@ -1,6 +1,4 @@
using System.Diagnostics;
using Avalonia.Input;
using Avalonia.Labs.Controls;
using Avalonia.Input;
using StabilityMatrix.Avalonia.Controls;
using StabilityMatrix.Avalonia.ViewModels.PackageManager;
using StabilityMatrix.Core.Attributes;
@ -22,9 +20,4 @@ public partial class PackageInstallBrowserView : UserControlBase
vm.ClearSearchQuery();
}
}
private void AsyncImage_OnFailed(object? sender, AsyncImage.AsyncImageFailedEventArgs e)
{
Debug.WriteLine($"Failed to load image: {e.ErrorException?.Message}");
}
}

Loading…
Cancel
Save