Don't try to handle svg images

This commit is contained in:
Stone_Red
2024-04-15 09:57:19 +02:00
parent f7225494f6
commit 571d8c2b4b
2 changed files with 6 additions and 1 deletions
@@ -11,6 +11,11 @@ internal class CommonImageProcessor : IContentProcessor
{
public bool CanProcess(HttpContentHeaders httpContentHeaders)
{
if (httpContentHeaders.ContentType?.MediaType == "image/svg+xml")
{
return false;
}
return httpContentHeaders.ContentType?.MediaType?.StartsWith("image/") == true;
}
@@ -185,7 +185,7 @@ public partial class MainWindowViewModel : ViewModelBase
GlobalState.ContentReload += (sender, _) =>
{
// Updatre icon when dark mode changes
// Update icon when dark mode changes
this.RaisePropertyChanged(nameof(Icon));
this.RaisePropertyChanged(nameof(Content));
};