jpg file extension fix ( should fix SMarketing files )

This commit is contained in:
XTigerHyperX
2021-03-25 04:18:08 +01:00
parent 7199bd3eba
commit 3cb83faa8f

View File

@@ -151,11 +151,12 @@ namespace FModel.Utils
});
break;
}
case ".jpg":
case ".png":
{
using var asset = GetMemoryStream(selected.ReaderEntry.ContainerName, mount + selected.ReaderEntry.GetPathWithoutExtension());
asset.Position = 0;
ImageBoxVm.imageBoxViewModel.Set(SKBitmap.Decode(asset), mount + selected.ReaderEntry.Name);
ImageBoxVm.imageBoxViewModel.Set(SKBitmap.Decode(asset), selected.ReaderEntry.GetNameWithExtension());
break;
}
case ".ushaderbytecode":